summaryrefslogtreecommitdiff
path: root/tests/CTestCustom.template
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-02-02 19:04:05 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-02-02 19:04:05 (GMT)
commit52cb3b00c2ce6981e3d3e7588fb11ab44b7c962f (patch)
treeec0334584c38a19cfadfdc4bb548e5516b43bd5e /tests/CTestCustom.template
parente9e62272a6cda04c453dd2d27b1a7e91be05f242 (diff)
start Xvfb on random DISPLAY number.
Diffstat (limited to 'tests/CTestCustom.template')
-rw-r--r--tests/CTestCustom.template6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/CTestCustom.template b/tests/CTestCustom.template
index 72e6443..0e51e21 100644
--- a/tests/CTestCustom.template
+++ b/tests/CTestCustom.template
@@ -37,8 +37,10 @@ if( __cmake_system_name__ MATCHES "Linux|BSD")
message("Process ID of vfb: ${VFB_PID}")
endif()
if ("${VFB_DISPLAY}" STREQUAL "" OR "${VFB_PID}" STREQUAL "")
- message("Virtual framebuffer had a problem starting.")
- execute_process("cat virtualfblog")
+ set(VFBLOG "virtualfb.log")
+ message("Virtual framebuffer had a problem starting. Printing ${VFBLOG}")
+ execute_process(COMMAND cat virtualfb.log OUTPUT_VARIABLE VFBLOGTXT)
+ message("Log: ${VFBLOGTXT}")
else()
message("Virtual framebuffer started. DISPLAY=${VFB_DISPLAY}, PID=${VFB_PID}")
endif()
contact: Jan Huwald // Impressum