Module: check_mk
Branch: master
Commit: 59d0a22745181bc4dc849d43191be30cbf88b7c5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59d0a22745181b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Apr 23 17:29:34 2018 +0200
windows agent unittest target: temporarily enable stderr
Enable this trying to track down random build issues like this:
(...)
mv -f test/.deps/WindowsAgentTest-MockWinApi.Tpo
test/.deps/WindowsAgentTest-MockWinApi.Po
x86_64-w64-mingw32-g++-posix -g -O2 -static -static-libgcc
-static-libstdc++ -o WindowsAgentTest.exe
test/WindowsAgentTest-ConfigurationTest.o
test/WindowsAgentTest-EnvironmentTest.o
test/WindowsAgentTest-EventLogVistaTest.o
test/WindowsAgentTest-MockEnvironment.o
test/WindowsAgentTest-MockLogger.o test/WindowsAgentTest-MockWinApi.o
test/WindowsAgentTest-RotatingFileHandlerTest.o
test/WindowsAgentTest-WritableFileTest.o
test/WindowsAgentTest-gtest_main.o
test/WindowsAgentTest-stringutilTest.o test/WindowsAgentTest-typesTest.o
test/WindowsAgentTest-wmiHelperTest.o
test/sections/WindowsAgentTest-SectionEventlogTest.o
test/sections/WindowsAgentTest-SectionHeaderTest.o
test/sections/WindowsAgentTest-SectionLogwatchTest.o
test/sections/WindowsAgentTest-SectionMRPETest.o libcheck_mk_agent.a
-lgtest -lgmock -lwsock32 -lws2_32 -lole32 -loleaut32 -lwbemuuid -lpsapi
-lshlwapi -limagehlp -lstdc++fs
DISPLAY="$DISPLAY xterm" wine WindowsAgentTest.exe 2>/dev/null
Makefile:1381: recipe for target 'unittest' failed
make: *** [unittest] Error 1
Change-Id: I579c4a11d0952682364b468e6af2d65a51b77c93
---
agents/windows/Makefile.am | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/agents/windows/Makefile.am b/agents/windows/Makefile.am
index c7ede10..8a7d663 100644
--- a/agents/windows/Makefile.am
+++ b/agents/windows/Makefile.am
@@ -166,8 +166,9 @@ check_mk_agent.res: check_mk_agent.rc $(VPATH)/check_mk_agent.ico
# Wine depends on X Server and may produce a number of warnings at startup.
# Using Xvfb does not work properly, either. Simply send those stderr warnings
# to /dev/null as the test output will go to stdout (and/or xml file) anyway.
+# DISPLAY="$$DISPLAY xterm" GTEST_OUTPUT=xml:result.xml wine $<
2>/dev/null
unittest: WindowsAgentTest$(EXEEXT)
- DISPLAY="$$DISPLAY xterm" GTEST_OUTPUT=xml:result.xml wine $<
2>/dev/null
+ DISPLAY="$$DISPLAY xterm" GTEST_OUTPUT=xml:result.xml wine $<
integrationtest: install-strip
cd $(bindir)/it ; \