apply gcov
[platform/core/uifw/libtbm.git] / utests / ut_main.cpp
1 #include "gtest/gtest.h"
2
3 #ifdef TIZEN_TEST_GCOV
4 extern "C" void __gcov_flush(void);
5 #endif
6
7 int main(int argc, char **argv)
8 {
9
10 #ifdef TIZEN_TEST_GCOV
11         setenv("GCOV_PREFIX", "/tmp", 1);
12 #endif
13
14         try {
15                 ::testing::InitGoogleTest(&argc, argv);
16                 ::testing::FLAGS_gtest_death_test_style = "fast";
17         } catch ( ... ) {
18                 exit(EXIT_FAILURE);
19         }
20
21 #ifdef TIZEN_TEST_GCOV
22         __gcov_flush();
23 #endif
24
25         return RUN_ALL_TESTS();
26 }