diff --git a/test/linux/unit_tests/unittests.c b/test/linux/unit_tests/unittests.c index e52357d..c2e0970 100644 --- a/test/linux/unit_tests/unittests.c +++ b/test/linux/unit_tests/unittests.c @@ -103,11 +103,11 @@ int main(int Argc, char* Argv[], char** Envp) if (LXT_SUCCESS(Result)) { - LxtLogPassed("%s", false, LxtTests[Itr].Name); + LxtLogPassed("%s", LxtTests[Itr].Name); } else { - LxtLogError("%s", false, LxtTests[Itr].Name); + LxtLogError("%s", LxtTests[Itr].Name); } goto ErrorExit; diff --git a/test/windows/Common.cpp b/test/windows/Common.cpp index 2c30e7f..3c39466 100644 --- a/test/windows/Common.cpp +++ b/test/windows/Common.cpp @@ -1907,7 +1907,8 @@ Return Value: } LaunchArguments += CommandLine; - LogInfo("Test process exited with: %lu", LxsstuLaunchWsl(LaunchArguments.c_str())); + DWORD ExitCode = LxsstuLaunchWsl(LaunchArguments.c_str()); + LogInfo("Test process exited with: %lu", ExitCode); // // Parse the contents of the linux log(s) files and relog. @@ -1917,9 +1918,11 @@ Return Value: { THROW_IF_NTSTATUS_FAILED(LxsstuParseLinuxLogFiles(LogFileName, &TestPassed)); - THROW_HR_IF(E_FAIL, !TestPassed); + VERIFY_IS_TRUE(TestPassed); } + VERIFY_ARE_EQUAL(0, ExitCode); + return; }