while ((rc = (getline line < ($$0 ".log"))) != 0) \
{ \
if (rc < 0) \
- fatal("failed to read from " $$0 ".log"); \
+ input_error($$0 ".log"); \
print line; \
}; \
+ printf "\n"; \
}; \
-## Don't leak open file descriptors, as this could cause serious
-## problems when there are many tests (yes, even on Linux).
- close ($$0 ".trs"); \
- close ($$0 ".log"); \
+ close_current(); \
+} \
+END { \
+ if (exit_status != 0) \
+ error("fatal: making $@: I/O error reading test results"); \
+ exit(exit_status); \
}'
# Restructured Text title.
# guaranteed to work on my machine.
syntax_check_rules = \
$(sc_tests_plain_check_rules) \
- sc_test_names \
sc_diff_automake_in_automake \
-sc_diff_aclocal_in_automake \
+sc_diff_aclocal_in_aclocal \
sc_perl_syntax \
sc_no_brace_variable_expansions \
sc_rm_minus_f \
done
cd serial
-$MAKE ${j}1 check &
+$MAKE -j1 check &
cd ../parallel
$sleep
- # Use append mode here to avoid dropping output.
- # Yes, this actually happens.
- : >stdout
+ # Use append mode here to avoid dropping output. See automake bug#11413.
+ : > stdout
-$MAKE ${j}4 check >> stdout
+$MAKE -j4 check >> stdout
cd ..
# Ensure the tests are really being run in parallel mode: if this is
# the case, the serial run of the dummy testsuite started above should