blob: 8c0a70312e7acf95747181a98214ca3e72813a51 [file] [log] [blame]
John Park33858a32018-09-28 23:05:48 -07001#include "aos/die.h"
brians343bc112013-02-10 01:53:46 +00002
3#include "gtest/gtest.h"
4
5namespace aos {
6namespace testing {
7
8TEST(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