Fix uncaught exception 28/261428/2
authorJaechul Lee <jcsing.lee@samsung.com>
Mon, 19 Jul 2021 00:58:00 +0000 (09:58 +0900)
committerJaechul Lee <jcsing.lee@samsung.com>
Mon, 19 Jul 2021 01:11:52 +0000 (10:11 +0900)
[Version] 0.0.11
[Issue Type] Coverity

Change-Id: Iab8f4384390adca66601e25976ab5a0e8c3d8bd4
Signed-off-by: Jaechul Lee <jcsing.lee@samsung.com>
packaging/hal-api-audio.spec
testcase/audio_haltests.cpp

index 6b660bacaa32fe7a9bf121d22614ed1f19ca853f..d049089e606a986a30ffd122e72506214cf4c11c 100644 (file)
@@ -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
index 6c13a2dbdd922f454eade905c0e85510d78284c7..c7f545043e5b03720e0c9b9273625becdb028c0b 100644 (file)
@@ -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;
+       }
 }