diff options
Diffstat (limited to 'test/sdtest.cpp')
-rw-r--r-- | test/sdtest.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/sdtest.cpp b/test/sdtest.cpp new file mode 100644 index 0000000..82cf511 --- /dev/null +++ b/test/sdtest.cpp @@ -0,0 +1,16 @@ +#include <phosphor-logging/test/sdjournal_mock.hpp> + +namespace phosphor +{ +namespace logging +{ + +TEST(LoggingSwapTest, BasicTestToEnsureItCompiles) +{ + SdJournalMock mockInstance; + auto* old = SwapJouralHandler(&mockInstance); + SwapJouralHandler(old); +} + +} // namespace logging +} // namespace phosphor |