From 1e1c6a43f8cc11e8d7d3809074d762c5a0a8d62e Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 9 Aug 2007 11:43:03 +0000 Subject: [PATCH] * windres/windres.exp: Return unsupported rather than fail if windows.h not found. --- binutils/testsuite/ChangeLog | 2 ++ binutils/testsuite/binutils-all/windres/windres.exp | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/binutils/testsuite/ChangeLog b/binutils/testsuite/ChangeLog index 0c699c1..46ba568 100644 --- a/binutils/testsuite/ChangeLog +++ b/binutils/testsuite/ChangeLog @@ -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 diff --git a/binutils/testsuite/binutils-all/windres/windres.exp b/binutils/testsuite/binutils-all/windres/windres.exp index eb219dd..9c2f477 100644 --- a/binutils/testsuite/binutils-all/windres/windres.exp +++ b/binutils/testsuite/binutils-all/windres/windres.exp @@ -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)" -- 2.7.4