2 # Copyright 2007 Google, Inc.
8 if test -e ".libs/$1"; then
10 elif test -e "$1.exe"; then
13 echo "We coundn't find $1 binary."
17 strings -n 10 $binary | sort | awk '/TESTMESSAGE/ {printf "%s ", $2}'
20 # Die if "$1" != "$2", print $3 as death reason
22 if [ "$1" != "$2" ]; then
23 echo "Check failed: '$1' == '$2' ${3:+ ($3)}"
33 # Check that the string literals are appropriately stripped. This will
34 # not be the case in debug mode.
36 check_eq "`get_strings logging_striptest0`" "COND ERROR FATAL INFO WARNING "
37 check_eq "`get_strings logging_striptest2`" "COND ERROR FATAL "
38 check_eq "`get_strings logging_striptest10`" ""
40 # Check that LOG(FATAL) aborts even for large STRIP_LOG
42 ./logging_striptest2 2>/dev/null && die "Did not abort for STRIP_LOG=2"
43 ./logging_striptest10 2>/dev/null && die "Did not abort for STRIP_LOG=10"