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