asm-fs-1.c: Expect failure on darwin.
[gcc.git] / gcc / testsuite / lib / scanasm.exp
index 774ec4a7ecd51e27c7f691bfbf194315dc872d7c..133516d11cd2da235a66cf13c97fb1202cacd6b1 100644 (file)
@@ -32,8 +32,8 @@ proc scan-assembler { args } {
        switch [dg-process-target [lindex $args 1]] {
            "S" { }
            "N" { return }
-           "F" { error "scan-assembler: `xfail' not allowed here" }
-           "P" { error "scan-assembler: `xfail' not allowed here" }
+           "F" { setup_xfail "*-*-*" }
+           "P" { }
        }
     }
 
@@ -70,8 +70,8 @@ proc scan-assembler-times { args } {
        switch [dg-process-target [lindex $args 2]] {
            "S" { }
            "N" { return }
-           "F" { error "scan-assembler: `xfail' not allowed here" }
-           "P" { error "scan-assembler: `xfail' not allowed here" }
+           "F" { setup_xfail "*-*-*" }
+           "P" { }
        }
     }
 
@@ -108,8 +108,8 @@ proc scan-assembler-not { args } {
        switch [dg-process-target [lindex $args 1]] {
            "S" { }
            "N" { return }
-           "F" { error "scan-assembler-not: `xfail' not allowed here" }
-           "P" { error "scan-assembler-not: `xfail' not allowed here" }
+           "F" { setup_xfail "*-*-*" }
+           "P" { }
        }
     }
 
@@ -145,8 +145,8 @@ proc scan-assembler-dem { args } {
        switch [dg-process-target [lindex $args 1]] {
            "S" { }
            "N" { return }
-           "F" { error "[lindex $args 0]: `xfail' not allowed here" }
-           "P" { error "[lindex $args 0]: `xfail' not allowed here" }
+           "F" { setup_xfail "*-*-*" }
+           "P" { }
        }
     }
 
@@ -191,8 +191,8 @@ proc scan-assembler-dem-not { args } {
        switch [dg-process-target [lindex $args 1]] {
            "S" { }
            "N" { return }
-           "F" { error "scan-assembler-dem-not: `xfail' not allowed here" }
-           "P" { error "scan-assembler-dem-not: `xfail' not allowed here" }
+           "F" { setup_xfail "*-*-*" }
+           "P" { }
        }
     }