tests: add optional GoogleTest-based smoke-tests and CMake support (BUILD_GTEST_SMOKE)
This commit is contained in:
1 parent
f4d1602d87
commit
b44bb09891
4 files changed
+82
-3
No files matched your search
@@ -0,0 +1,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(DataTopicSmokeGTest, Format) {
|
||||
char buf[64];
|
||||
snprintf(buf, sizeof(buf), "%d-%s", 42, "abc");
|
||||
EXPECT_STREQ(buf, "42-abc");
|
||||
}
|
||||
Reference in new issue
Block a user