Fix UNCAUGHT_EXCEPT issue 35/240135/2
authorJusung Son <jusung07.son@samsung.com>
Tue, 4 Aug 2020 01:12:52 +0000 (10:12 +0900)
committerJusung Son <jusung07.son@samsung.com>
Tue, 4 Aug 2020 01:15:03 +0000 (10:15 +0900)
Change-Id: I2d9113f79a1ada4067edc23a39a43d38d91f865b
Signed-off-by: Jusung Son <jusung07.son@samsung.com>
unittest/src/test-main.cc

index 424128a..4d5ee8f 100644 (file)
@@ -70,8 +70,8 @@ void UpdateDB() {
 
 int main(int argc, char** argv){
   int ret = -1;
-  UpdateDB();
   try {
+    UpdateDB();
     testing::InitGoogleTest(&argc, argv);
   } catch(...) {
     cout << "Exception occurred" << endl;