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

tools/memory-model: Make judgelitmus.sh handle scripted Result: tag

The scripts that generate the litmus tests in the "auto" directory of
the https://github.com/paulmckrcu/litmus archive place the "Result:"
tag into a single-line ocaml comment, which judgelitmus.sh currently
does not recognize. This commit therefore makes judgelitmus.sh
recognize both the multiline comment format that it currently does
and the automatically generated single-line format.

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

+3 -3
+3 -3
tools/memory-model/scripts/judgelitmus.sh
··· 57 57 then 58 58 datarace_modeled=1 59 59 fi 60 - if grep -q '^ \* Result: ' $litmus 60 + if grep -q '^[( ]\* Result: ' $litmus 61 61 then 62 - outcome=`grep -m 1 '^ \* Result: ' $litmus | awk '{ print $3 }'` 63 - if grep -m1 '^ \* Result: .* DATARACE' $litmus 62 + outcome=`grep -m 1 '^[( ]\* Result: ' $litmus | awk '{ print $3 }'` 63 + if grep -m1 '^[( ]\* Result: .* DATARACE' $litmus 64 64 then 65 65 datarace_predicted=1 66 66 fi