automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 08] Match XFAIL_TESTS correctly with Solaris make.


From: Ralf Wildenhues
Subject: [PATCH 08] Match XFAIL_TESTS correctly with Solaris make.
Date: Sat, 14 Mar 2009 11:57:42 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Without this patch, Solaris make did not match any XFAIL_TESTS in a
VPATH setup.

Cheers,
Ralf

    Match XFAIL_TESTS correctly with Solaris make.
    
    * lib/am/check.am [PARALLEL_TESTS]: VPATH rewriting may have
    changed test names, so srcdir needs to be taken into account
    explicitly when checking against the list of tests expected
    to fail.  Fixes spurious FAILures from XFAIL_TESTS.

diff --git a/lib/am/check.am b/lib/am/check.am
index c01a25a..dab0dc8 100644
--- a/lib/am/check.am
+++ b/lib/am/check.am
@@ -121,11 +121,10 @@ fi;                                                       
\
 TERM=$$__SAVED_TERM; export TERM;                      \
 $(am__tty_colors);                                     \
 xfailed=PASS;                                          \
-for xfail in : $(XFAIL_TESTS); do                      \
-  case $$f in                                          \
-    $$xfail | $(srcdir)/$$xfail) xfailed=XFAIL; break; \
-  esac;                                                        \
-done;                                                  \
+case " $(XFAIL_TESTS) " in                             \
+  *[\ \        ]$$f[\ \        ]* | *[\ \      ]$$dir$$f[\ \   ]*) \
+    xfailed=XFAIL;;                                    \
+esac;                                                  \
 case $$estatus:$$xfailed in                            \
     0:XFAIL) col=$$red; res=XPASS;;                    \
     0:*)     col=$$grn; res=PASS ;;                    \




reply via email to

[Prev in Thread] Current Thread [Next in Thread]