* windres/windres.exp: Return unsupported rather than fail if
authorAlan Modra <amodra@gmail.com>
Thu, 9 Aug 2007 11:43:03 +0000 (11:43 +0000)
committerAlan Modra <amodra@gmail.com>
Thu, 9 Aug 2007 11:43:03 +0000 (11:43 +0000)
windows.h not found.

binutils/testsuite/ChangeLog
binutils/testsuite/binutils-all/windres/windres.exp

index 0c699c12d8381d8e51bb4bc12c9a8e50302d6890..46ba56812ac97b38c74505a13cc6ac9c9cf3f8af 100644 (file)
@@ -4,6 +4,8 @@
        * binutils-all/copy-3.d (not-target): Likewise.
        * binutils-all/objcopy.exp (objcopy_test): Remove extraneous
        setup_xfail.
+       * windres/windres.exp: Return unsupported rather than fail if
+       windows.h not found.
 
 2007-07-05  Nick Clifton  <nickc@redhat.com>
 
index eb219dd456d182715716b32a98591151b1143be0..9c2f4773b9bd682df05b59c7a965b6f934295b38 100644 (file)
@@ -88,7 +88,11 @@ foreach res $res_list {
     if ![string match "" $err] then {
        send_log "$err\n"
        verbose "$err" 1
-       fail "windres/$broot (parse)"
+       if [string match "*windows.h: No such file*" $err] then {
+           unsupported "windres/$broot (parse)"
+       } else {
+           fail "windres/$broot (parse)"
+       }
        continue
     }
     pass "windres/$broot (parse)"