Remove redundant check in all.sh

test -s can't fail if the subsequent grep succeeds.
This commit is contained in:
Gilles Peskine 2018-09-27 11:49:52 +02:00
parent 3a33c01a98
commit 2bb56095ec

View file

@ -1071,7 +1071,6 @@ for optimization_flag in -O2 -O3 -Ofast -Os; do
cleanup cleanup
make programs CC="$compiler" DEBUG=1 CFLAGS="$optimization_flag" make programs CC="$compiler" DEBUG=1 CFLAGS="$optimization_flag"
if_build_succeeded gdb -x tests/scripts/test_zeroize.gdb -nw -batch -nx 2>&1 | tee test_zeroize.log if_build_succeeded gdb -x tests/scripts/test_zeroize.gdb -nw -batch -nx 2>&1 | tee test_zeroize.log
if_build_succeeded [ -s test_zeroize.log ]
if_build_succeeded grep "The buffer was correctly zeroized" test_zeroize.log if_build_succeeded grep "The buffer was correctly zeroized" test_zeroize.log
if_build_succeeded not grep -i "error" test_zeroize.log if_build_succeeded not grep -i "error" test_zeroize.log
rm -f test_zeroize.log rm -f test_zeroize.log