Skip to content

Commit 6b1781c

Browse files
Kevin-Luongssugiura
authored andcommitted
Update gtest_dlt_all.sh to detect core dump
Signed-off-by: Luong Hong Duy Khanh <[email protected]>
1 parent 82ab5cf commit 6b1781c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.travis/gtest_dlt_all.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,21 @@ function gtest_run_test()
2828
{
2929
LOG="../.travis/$1.log"
3030

31+
# Send all messsages and system errors to log file
32+
export LIBC_FATAL_STDERR_=1
33+
3134
# Execute unit test
32-
./$1 > $LOG
35+
{ ./$1 ;} > $LOG 2>&1
36+
37+
# Release
38+
export LIBC_FATAL_STDERR_=0
3339

3440
# Check for result
35-
grep "FAILED TEST" $LOG
41+
grep "FAILED TEST\|core dumped" $LOG
3642
if [ $? -eq 0 ]
3743
then
3844
cat $LOG
45+
echo "$1 failed"
3946
exit 1
4047
fi
4148
echo "$1 passed"

0 commit comments

Comments
 (0)