Module: check_mk
Branch: master
Commit: d505a7b9e36afb488422f68cfc65c224af95d28a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d505a7b9e36afb…
Author: Sergey Kipnis <sk(a)mathias-kettner.de>
Date: Wed Apr 10 11:56:55 2019 +0200
Unit Test small fix to improve diagnostic
Change-Id: I34e4889e6ae66c937b4cb47eeaf6e2d744a7c031
---
agents/wnx/watest/test-upgrade.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/agents/wnx/watest/test-upgrade.cpp b/agents/wnx/watest/test-upgrade.cpp
index 24a96a0..4f626a7 100644
--- a/agents/wnx/watest/test-upgrade.cpp
+++ b/agents/wnx/watest/test-upgrade.cpp
@@ -2,7 +2,6 @@
// complicated things LWA -> NWA
-
#include "pch.h"
#include <filesystem>
@@ -407,7 +406,8 @@ TEST(UpgradeTest, StopStartStopOhm) {
std::error_code ec;
ASSERT_TRUE(fs::exists(ohm))
<< "OpenHardwareMonitor not installed, please, add it to the Legacy
Agent folder";
- RunDetachedProcess(ohm.wstring());
+ auto ret = RunDetachedProcess(ohm.wstring());
+ ASSERT_TRUE(ret);
auto status = WaitForStatus(GetServiceStatusByName, L"WinRing0_1_2_0",
SERVICE_RUNNING, 5000);
@@ -419,7 +419,8 @@ TEST(UpgradeTest, StopStartStopOhm) {
SERVICE_STOPPED, 5000);
EXPECT_EQ(status, SERVICE_STOPPED);
- RunDetachedProcess(ohm.wstring());
+ ret = RunDetachedProcess(ohm.wstring());
+ ASSERT_TRUE(ret);
tools::sleep(1000);
status = WaitForStatus(GetServiceStatusByName, L"WinRing0_1_2_0",
SERVICE_RUNNING, 5000);