Fixed errors and warnings with test results
This commit is contained in:
@@ -268,7 +268,7 @@ TEST_F(ButtonSimTest, DoubleReleaseSameState) {
|
||||
TEST(ButtonPolymorphismTest, AllImplsWorkThroughBasePointer) {
|
||||
mock_arduino_reset();
|
||||
SimHal hal;
|
||||
hal.setDigital(2, LOW); // pressed for active-low
|
||||
hal.setPin(2, LOW); // pressed for active-low
|
||||
|
||||
ButtonDigital digital_btn(&hal, 2, true);
|
||||
ButtonMock mock_btn;
|
||||
@@ -286,4 +286,4 @@ TEST(ButtonPolymorphismTest, AllImplsWorkThroughBasePointer) {
|
||||
EXPECT_TRUE(pressed);
|
||||
(void)raw; // just verify it compiles and runs
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -111,7 +111,7 @@ if %DO_CLEAN%==1 (
|
||||
|
||||
if not exist "%BUILD_DIR%\CMakeCache.txt" (
|
||||
echo [TEST] Configuring test build. First run will fetch Google Test...
|
||||
cmake -S "%TEST_DIR%" -B "%BUILD_DIR%" -DCMAKE_BUILD_TYPE=Debug
|
||||
cmake -S "%TEST_DIR%" -B "%BUILD_DIR%"
|
||||
if errorlevel 1 (
|
||||
echo [FAIL] cmake configure failed.
|
||||
echo Run 'anvil doctor' to check your environment.
|
||||
|
||||
@@ -94,6 +94,7 @@ foreach(TEST_SOURCE ${DRIVER_TEST_SOURCES})
|
||||
add_executable(${TEST_NAME} ${TEST_SOURCE})
|
||||
target_link_libraries(${TEST_NAME}
|
||||
GTest::gtest_main
|
||||
GTest::gmock
|
||||
mock_arduino
|
||||
)
|
||||
gtest_discover_tests(${TEST_NAME})
|
||||
|
||||
Reference in New Issue
Block a user