commit | 33858a37b0aebf19bad51e664b5238f57f95af4c | [log] [tgz] |
---|---|---|
author | John Park <johnhenryp@icloud.com> | Fri Sep 28 23:05:48 2018 -0700 |
committer | John Park <johnhenryp@icloud.com> | Sat Oct 13 19:36:22 2018 -0700 |
tree | abc7fdd2817cd432500e4dd689a7dfcd1055f8ec | |
parent | db4e8e58ee12c58d663ff152b5f6f6f55fb948b2 [diff] [blame] |
Removed Common Change-Id: I01ea8f07220375c2ad9bc0092281d4f27c642303
diff --git a/aos/die_test.cc b/aos/die_test.cc new file mode 100644 index 0000000..8c0a703 --- /dev/null +++ b/aos/die_test.cc
@@ -0,0 +1,14 @@ +#include "aos/die.h" + +#include "gtest/gtest.h" + +namespace aos { +namespace testing { + +TEST(DieDeathTest, Works) { + EXPECT_EXIT(Die("str=%s num=%d\n", "hi", 5), + ::testing::KilledBySignal(SIGABRT), ".*str=hi num=5\n"); +} + +} // namespace testing +} // namespace aos