* lib/autotest/general.m4: Use the serial code path if no test
is to be run.
* tests/autotest.at (parallel test execution): Test -j and -jN
with `-k notmatched'.
Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+2008-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Fix more testsuite hang corner cases.
+ * lib/autotest/general.m4: Use the serial code path if no test
+ is to be run.
+ * tests/autotest.at (parallel test execution): Test -j and -jN
+ with `-k notmatched'.
+
2008-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Fix hang with `testsuite -k notmatched'.
# Set number of jobs for `-j'; avoid more jobs than test groups.
set X $at_groups; shift; at_max_jobs=$[@%:@]
+if test $at_max_jobs -eq 0; then
+ at_jobs=1
+fi
if test $at_jobs -ne 1 &&
{ test $at_jobs -eq 0 || test $at_jobs -gt $at_max_jobs; }; then
at_jobs=$at_max_jobs
AT_CHECK([$CONFIG_SHELL ./micro-suite -j3 3], [], [stdout])
AT_CHECK([grep -c '^.\{53\}ok' stdout], [], [1
])
+# Not even with zero tests:
+AT_CHECK([$CONFIG_SHELL ./micro-suite -j -k nomatch], [], [ignore])
+AT_CHECK([$CONFIG_SHELL ./micro-suite -j3 -k nomatch], [], [ignore])
# The parallel scheduler requires mkfifo to work.
AT_CHECK([mkfifo fifo || exit 77])