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 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame^] | 5 | namespace aos::testing { |
brians | 343bc11 | 2013-02-10 01:53:46 +0000 | [diff] [blame] | 6 | |
| 7 | TEST(DieDeathTest, Works) { |
| 8 | EXPECT_EXIT(Die("str=%s num=%d\n", "hi", 5), |
| 9 | ::testing::KilledBySignal(SIGABRT), ".*str=hi num=5\n"); |
| 10 | } |
| 11 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame^] | 12 | } // namespace aos::testing |