John Park | 33858a3 | 2018-09-28 23:05:48 -0700 | [diff] [blame] | 1 | #include "aos/die.h" |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 2 | |
3 | #include "gtest/gtest.h" | ||||
4 | |||||
5 | namespace aos { | ||||
6 | namespace testing { | ||||
7 | |||||
8 | TEST(DieDeathTest, Works) { | ||||
9 | EXPECT_EXIT(Die("str=%s num=%d\n", "hi", 5), | ||||
10 | ::testing::KilledBySignal(SIGABRT), ".*str=hi num=5\n"); | ||||
11 | } | ||||
12 | |||||
13 | } // namespace testing | ||||
14 | } // namespace aos |