Skip to content

Commit bf8dfe1

Browse files
t_foo modifications
1 parent 2ee2879 commit bf8dfe1

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

Tests/L2Tests/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ set(THUNDER_PORT 9998)
2222

2323
find_package(${NAMESPACE}Plugins REQUIRED)
2424

25-
set (TEST_SRC
26-
tests/test_foo.cpp
27-
)
25+
set(SRC_FILES tests/test_foo.cpp)
2826

2927
if(PLUGIN_AVOUTPUT)
3028
set(SRC_FILES ${SRC_FILES} tests/AVOutputTV_L2Test.cpp)

Tests/L2Tests/tests/test_foo.cpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
#include <gtest/gtest.h>
12
#include <iostream>
23

3-
void foo() {
4-
std::cout << "Hello from foo()" << std::endl;
5-
}
64

7-
int main() {
8-
foo();
9-
return 0;
5+
class PrintTest : public ::testing::Test {
6+
};
7+
8+
// Single test with print statement
9+
TEST_F(PrintTest, BasicOutput) {
10+
std::cout << "this is a print statement" << std::endl;
1011
}

0 commit comments

Comments
 (0)