From 99e8582f916da2a0dd5ec0477fb0aeaf9d14b87b Mon Sep 17 00:00:00 2001 From: Jaechul Lee Date: Mon, 19 Jul 2021 09:58:00 +0900 Subject: [PATCH] Fix uncaught exception [Version] 0.0.11 [Issue Type] Coverity Change-Id: Iab8f4384390adca66601e25976ab5a0e8c3d8bd4 Signed-off-by: Jaechul Lee --- packaging/hal-api-audio.spec | 2 +- testcase/audio_haltests.cpp | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/packaging/hal-api-audio.spec b/packaging/hal-api-audio.spec index 6b660ba..d049089 100644 --- a/packaging/hal-api-audio.spec +++ b/packaging/hal-api-audio.spec @@ -1,6 +1,6 @@ Name: hal-api-audio Summary: TIZEN Audio HAL -Version: 0.0.10 +Version: 0.0.11 Release: 0 Group: System/Libraries License: Apache-2.0 diff --git a/testcase/audio_haltests.cpp b/testcase/audio_haltests.cpp index 6c13a2d..c7f5450 100644 --- a/testcase/audio_haltests.cpp +++ b/testcase/audio_haltests.cpp @@ -1204,7 +1204,10 @@ int main(int argc, char **argv) cout.rdbuf(nullptr); #endif - testing::InitGoogleTest(&argc, argv); - - return RUN_ALL_TESTS(); + try { + testing::InitGoogleTest(&argc, argv); + return RUN_ALL_TESTS(); + } catch (...) { + return -1; + } } -- 2.34.1