This would prevent the liblockdep error messages from getting mixed in with the test result output.
Unified · Split
| @@ -6,7 +6,7 @@ for i in `ls tests/*.c`; do · 5 unmodified lines | |||
| 6 | testname=$(basename "$i" .c) | 6 | testname=$(basename "$i" .c) |
| 7 | gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null | 7 | gcc -o tests/$testname -pthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null |
| 8 | echo -ne "$testname... " | 8 | echo -ne "$testname... " |
| 9 | if [ $(timeout 1 ./tests/$testname | wc -l) -gt 0 ]; then | 9 | if [ $(timeout 1 ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then |
| 10 | echo "PASSED!" | 10 | echo "PASSED!" |
| 11 | else | 11 | else |
| 12 | echo "FAILED!" | 12 | echo "FAILED!" |
| @@ -20,7 +20,7 @@ for i in `ls tests/*.c`; do · 7 unmodified lines | |||
| 20 | testname=$(basename "$i" .c) | 20 | testname=$(basename "$i" .c) |
| 21 | gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null | 21 | gcc -o tests/$testname -pthread -Iinclude $i &> /dev/null |
| 22 | echo -ne "(PRELOAD) $testname... " | 22 | echo -ne "(PRELOAD) $testname... " |
| 23 | if [ $(timeout 1 ./lockdep ./tests/$testname | wc -l) -gt 0 ]; then | 23 | if [ $(timeout 1 ./lockdep ./tests/$testname 2>&1 | wc -l) -gt 0 ]; then |
| 24 | echo "PASSED!" | 24 | echo "PASSED!" |
| 25 | else | 25 | else |
| 26 | echo "FAILED!" | 26 | echo "FAILED!" |