bug-gperf
[Top][All Lists]
Advanced

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

[bug-gperf] [PATCH] Fix race condition in testsuite


From: Andreas Schwab
Subject: [bug-gperf] [PATCH] Fix race condition in testsuite
Date: Tue, 06 Mar 2018 10:12:27 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.91 (gnu/linux)

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.
---
 tests/Makefile.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/tests/Makefile.in b/tests/Makefile.in
index 374cbb2954..feec7d77ae 100644
--- a/tests/Makefile.in
+++ b/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
-- 
2.16.2


-- 
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."



reply via email to

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