$AUTOMAKE --add-missing
./configure
+# Use append mode here to avoid dropping output. See automake bug#11413.
: >stdout
$MAKE -j >>stdout || { cat stdout; Exit 1; }
rm -f am-*.elc
+# Use append mode here to avoid dropping output. See automake bug#11413.
: >stdout
$MAKE -j >>stdout || { cat stdout; Exit 1; }
$MAKE ${j}1 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
cd ..
# Ensure the tests are really being run in parallel mode: if this is
# Success.
- $run_make check >stdout || { cat stdout; Exit 1; }
+ # Use append mode here to avoid dropping output. See automake bug#11413.
+ # Also, use 'echo' here to "nullify" the previous contents of 'stdout',
+ # since Solaris 10 /bin/sh would try to optimize a ':' away after the
+ # first iteration, even if it is redirected.
+ echo " " >stdout
+ $run_make check >>stdout || { cat stdout; Exit 1; }
cat stdout
count_test_results total=6 pass=4 fail=0 xpass=0 xfail=1 skip=1 error=0
grep '^PASS: 1\.test 1 - mu$' stdout
# a ':' away after the first iteration, even if it is redirected.
echo dummy > not-skip
echo dummy > bail-out
- $run_make check >stdout && { cat stdout; Exit 1; }
+ # Use append mode here to avoid dropping output. See automake bug#11413.
+ # Also, use 'echo' here to "nullify" the previous contents of 'stdout',
+ # since Solaris 10 /bin/sh would try to optimize a ':' away after the
+ # first iteration, even if it is redirected.
+ echo " " >stdout
+ $run_make check >>stdout && { cat stdout; Exit 1; }
cat stdout
count_test_results total=7 pass=4 fail=1 xpass=0 xfail=1 skip=0 error=1
grep '^PASS: 1\.test 1 - mu$' stdout