gperf/testsuite-race.patch

33 lines
1.4 KiB
Diff
Raw Normal View History

Fix race condition in testsuite
Move the Ada test from check-test to check-ada, where the aout binary is
being built.
* tests/Makefile.in (check-test): Don't run aout test.
(check-ada): Run it here.
Index: gperf-3.1/tests/Makefile.in
===================================================================
--- gperf-3.1.orig/tests/Makefile.in
+++ gperf-3.1/tests/Makefile.in
@@ -86,6 +86,9 @@ check-ada: test.$(OBJEXT)
@echo "testing Ada predefined words, all items should be found in the set"
./preout -v < $(srcdir)/adadefs.gperf | LC_ALL=C tr -d '\r' > ada-pred.out
diff $(srcdir)/ada-pred.exp ada-pred.out
+ @echo "only if, do, for, case, goto, else, while, and return should be found "
+ ./aout -v < $(srcdir)/c.gperf | $(POSTPROCESS_FOR_MINGW) > test-7.out
+ diff $(srcdir)/test-7.exp test-7.out
check-modula3: test.$(OBJEXT)
$(GPERF) -k1,2,'$$' -I -o $(srcdir)/modula3.gperf > m3inset.c
@@ -170,9 +173,6 @@ check-test:
# prints out the help message
-$(GPERF) -h | $(POSTPROCESS_FOR_MINGW) > test-6.out
diff $(srcdir)/test-6.exp test-6.out
- @echo "only if, do, for, case, goto, else, while, and return should be found "
- ./aout -v < $(srcdir)/c.gperf | $(POSTPROCESS_FOR_MINGW) > test-7.out
- diff $(srcdir)/test-7.exp test-7.out
# The following validates valid language syntax with different parameters.
# Works only with gcc and g++, and only on platforms where "gcc -ansi" is