diff options
author | Kevin-Luong <39298548+Kevin-Luong@users.noreply.github.com> | 2020-06-18 16:32:09 +0700 |
---|---|---|
committer | Saya Sugiura <39760799+ssugiura@users.noreply.github.com> | 2020-07-06 10:32:57 +0900 |
commit | 6b1781cb5ef5d6586dbe5c06bd973a0957c91813 (patch) | |
tree | 564e5da23bd7a46222f9b5bbe0d61c626dc1e97f /.travis/gtest_dlt_all.sh | |
parent | 82ab5cf22946bf417b9c89494e28e5ad615ff018 (diff) | |
download | DLT-daemon-6b1781cb5ef5d6586dbe5c06bd973a0957c91813.tar.gz |
Update gtest_dlt_all.sh to detect core dump
Signed-off-by: Luong Hong Duy Khanh <khanh.luonghongduy@vn.bosch.com>
Diffstat (limited to '.travis/gtest_dlt_all.sh')
-rwxr-xr-x | .travis/gtest_dlt_all.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/.travis/gtest_dlt_all.sh b/.travis/gtest_dlt_all.sh index 1eeb231..50bb73e 100755 --- a/.travis/gtest_dlt_all.sh +++ b/.travis/gtest_dlt_all.sh @@ -28,14 +28,21 @@ function gtest_run_test() { LOG="../.travis/$1.log" + # Send all messsages and system errors to log file + export LIBC_FATAL_STDERR_=1 + # Execute unit test - ./$1 > $LOG + { ./$1 ;} > $LOG 2>&1 + + # Release + export LIBC_FATAL_STDERR_=0 # Check for result - grep "FAILED TEST" $LOG + grep "FAILED TEST\|core dumped" $LOG if [ $? -eq 0 ] then cat $LOG + echo "$1 failed" exit 1 fi echo "$1 passed" |