Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/memory-model: Make judgelitmus.sh note timeouts

Currently, judgelitmus.sh treats timeouts (as in the "--timeout" argument)
as "!!! Verification error". This can be misleading because it is quite
possible that running the test longer would have produced a verification.
This commit therefore changes judgelitmus.sh to check for timeouts and
to report them with "!!! Timeout".

Signed-off-by: Paul E. McKenney <paulmck@kernel.org>

+8
+8
tools/memory-model/scripts/judgelitmus.sh
··· 42 42 if grep -q '^Observation' $LKMM_DESTDIR/$litmus.out 43 43 then 44 44 : 45 + elif grep '^Command exited with non-zero status 124' $LKMM_DESTDIR/$litmus.out 46 + then 47 + echo ' !!! Timeout' $litmus 48 + if ! grep -q '!!!' $LKMM_DESTDIR/$litmus.out 49 + then 50 + echo ' !!! Timeout' >> $LKMM_DESTDIR/$litmus.out 2>&1 51 + fi 52 + exit 124 45 53 else 46 54 echo ' !!! Verification error' $litmus 47 55 if ! grep -q '!!!' $LKMM_DESTDIR/$litmus.out