| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 export LC_ALL="C" | 2 export LC_ALL="C" |
| 3 | 3 |
| 4 function check_valgrind_log () { | 4 function check_valgrind_log () { |
| 5 if [ "$VALGRIND" != "" ]; then | 5 if [ "$VALGRIND" != "" ]; then |
| 6 if [ -f $TEMPDIR/test.pid* ]; then | 6 if [ -f $TEMPDIR/test.pid* ]; then |
| 7 log=`ls $TEMPDIR/test.pid*` | 7 log=`ls $TEMPDIR/test.pid*` |
| 8 if ! grep -q 'ERROR SUMMARY: 0 error' $log; then | 8 if ! grep -q 'ERROR SUMMARY: 0 error' $log; then |
| 9 echo "Fail in $NAME $1 checking detected by Valgrind" | 9 echo "Fail in $NAME $1 checking detected by Valgrind" |
| 10 echo "$log Valgrind log file moved to $TEMPDIR/badlogs" | 10 echo "$log Valgrind log file moved to $TEMPDIR/badlogs" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 echo "=============================================" | 102 echo "=============================================" |
| 103 echo "Fail in $NAME.sug. Bad suggestion?" | 103 echo "Fail in $NAME.sug. Bad suggestion?" |
| 104 diff $TESTDIR/$NAME.sug $TEMPDIR/$NAME.sug | 104 diff $TESTDIR/$NAME.sug $TEMPDIR/$NAME.sug |
| 105 rm -f $TEMPDIR/$NAME.sug | 105 rm -f $TEMPDIR/$NAME.sug |
| 106 exit 1 | 106 exit 1 |
| 107 fi | 107 fi |
| 108 rm -f $TEMPDIR/$NAME.sug | 108 rm -f $TEMPDIR/$NAME.sug |
| 109 fi | 109 fi |
| 110 | 110 |
| 111 check_valgrind_log "suggestion" | 111 check_valgrind_log "suggestion" |
| OLD | NEW |