Skip to content

Commit b35cf45

Browse files
committed
Updated valgrind script
1 parent cec6202 commit b35cf45

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

unittest/run_valgrind.sh

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,9 @@ fi
1717
echo "" | tee -a $REPORT
1818
echo "Run with: -O0" | tee -a report_valgrind.txt
1919
cd ../mapcodelib
20-
gcc $OPTS -g -O0 -DDEBUG -c mapcoder.c
20+
gcc $OPTS -g -O0 -c mapcoder.c
2121
cd ../unittest
22-
gcc $OPTS -g -O0 -DDEBUG unittest.c -lm -lpthread -o unittest $LIB
23-
valgrind --leak-check=yes ./unittest | tee -a $REPORT
24-
echo "----------------" tee -a $REPORT
25-
26-
echo "" | tee -a $REPORT
27-
echo "Run with: -O3" | tee -a report_valgrind.txt
28-
cd ../mapcodelib
29-
gcc $OPTS -g -O3 -c mapcoder.c
30-
cd ../unittest
31-
gcc $OPTS -g -O3 unittest.c -lm -lpthread -o unittest $LIB
22+
gcc $OPTS -g -O0 unittest.c -lm -lpthread -o unittest $LIB
3223
valgrind --leak-check=yes ./unittest | tee -a $REPORT
3324
echo "----------------" tee -a $REPORT
3425

0 commit comments

Comments
 (0)