Skip to content

Commit 556b6af

Browse files
committed
add memory lost test
1 parent fadb74c commit 556b6af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/module_pw/test/test_gnu.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ elif ((i==1)) ;then
5151
./pw_test.exe
5252
echo "valgrind test:(1 processors)"
5353
valgrind ./pw_test.exe >_tmp.txt 2>&1
54-
cat _tmp.txt|grep "ERROR SUMMARY"
54+
cat _tmp.txt|egrep "(ERROR SUMMARY)|(lost)";
5555
else
5656
echo "1 processor:"
5757
./pw_test.exe
@@ -70,13 +70,13 @@ fi
7070
if ((i==3)) ;then
7171
echo "valgrind test:(1 processors)"
7272
valgrind ./pw_test.exe >_tmp.txt 2>&1
73-
cat _tmp.txt|grep "ERROR SUMMARY";
73+
cat _tmp.txt|egrep "(ERROR SUMMARY)|(lost)";
7474
echo "valgrind test:(2 processors)"
7575
mpirun -np 2 valgrind ./pw_test.exe >_tmp.txt 2>&1
76-
cat _tmp.txt|grep "ERROR SUMMARY";
76+
cat _tmp.txt|egrep "(ERROR SUMMARY)|(lost)";
7777
echo "valgrind test:(8 processors)"
7878
mpirun -np 8 valgrind ./pw_test.exe >_tmp.txt 2>&1
79-
cat _tmp.txt|grep "ERROR SUMMARY";
79+
cat _tmp.txt|egrep "(ERROR SUMMARY)|(lost)";
8080
fi
8181
make clean > /dev/null 2>&1
8282
done

0 commit comments

Comments
 (0)