tc: add catch case for std::length_error exception 49/321249/1
authorhojoon-ryou <hojoon.ryou@samsung.com>
Tue, 18 Mar 2025 02:49:46 +0000 (11:49 +0900)
committerhojoon-ryou <hojoon.ryou@samsung.com>
Tue, 18 Mar 2025 02:49:46 +0000 (11:49 +0900)
Change-Id: Ibd124097c5de92abbe86b9b25b23c5867db71918
Signed-off-by: hojoon-ryou <hojoon.ryou@samsung.com>
haltests/tc_main.cpp

index 44888b69b700256651ea2ccd3355f92ce6398d17..f3c34ff19066c9d70507b07286c054e15489b713 100644 (file)
@@ -63,6 +63,10 @@ int main(int argc, char **argv)
                AllTestSuccess = false;
                std::cout << "GoogleTestFailureException was thrown:" << e.what() << std::endl;
                std::cout << "\n";
+       } catch (const std::length_error & e) {
+               AllTestSuccess = false;
+               std::cout << "std::length_error was thrown:" << e.what() << std::endl;
+               std::cout << "\n";
        }
 
 #ifdef TIZEN_TEST_GCOV