summaryrefslogtreecommitdiffstats
path: root/src/test/callbacktest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/callbacktest.cpp')
-rw-r--r--src/test/callbacktest.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/callbacktest.cpp b/src/test/callbacktest.cpp
new file mode 100644
index 0000000..1152e12
--- /dev/null
+++ b/src/test/callbacktest.cpp
@@ -0,0 +1,15 @@
+#include <gtest/gtest.h>
+
+#include "generated.hpp"
+
+using namespace phosphor::dbus::monitoring;
+
+TEST(JournalTest, Test)
+{
+ // No assertions here, but the least we can do
+ // make sure the program runs without crashing...
+ for (auto& c : ConfigPropertyCallbacks::get())
+ {
+ (*c)();
+ }
+}
OpenPOWER on IntegriCloud