mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
GoogleTest hello world.
./build and ./test work automatically when cwd is inside userland/libs/XXX without --package-all.
This commit is contained in:
9
userland/libs/googletest/fail.cpp
Normal file
9
userland/libs/googletest/fail.cpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
TEST(FailTest, ThisTestPasses) {
|
||||
EXPECT_EQ(1, 1);
|
||||
}
|
||||
|
||||
TEST(FailTest, ThisTestFails) {
|
||||
EXPECT_EQ(1, 2);
|
||||
}
|
||||
Reference in New Issue
Block a user