btrfs-progs/tests/scan-results.sh
David Sterba 0bd0d9c062 btrfs-progs: tests: teach scan-results about more errors
ASAN detects use after free.

Signed-off-by: David Sterba <dsterba@suse.com>
2016-11-09 13:47:35 +01:00

19 lines
496 B
Bash
Executable File

#!/bin/sh
# look for some error messages in all test logs
for i in *.txt; do
echo "Scanning $i"
last=
while read line; do
case "$line" in
===\ Entering*) last="$line" ;;
*Assertion*failed*) echo "ASSERTION FAILED: $last" ;;
*runtime\ error*) echo "RUNTIME ERROR (sanitizer): $last" ;;
*AddressSanitizer*heap-use-after-free*) echo "RUNTIME ERROR (use after free): $last" ;;
*Warning:\ assertion*failed*) echo "ASSERTION WARNING: $last" ;;
*) : ;;
esac
done < "$i"
done