summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-01-05 18:24:47 +0100
committerDave Davenport <qball@gmpclient.org>2016-01-05 18:24:47 +0100
commit4fbf24948069f5432696a390b580ba8758789dc1 (patch)
tree4f19317713b0a38b70bd900b338fac7627789481 /test
parent155cf351e08b88c88f6d188484e83417ca33fa2a (diff)
Update window test.
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_window_test.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/run_window_test.sh b/test/run_window_test.sh
index 7439a09b..3d481257 100755
--- a/test/run_window_test.sh
+++ b/test/run_window_test.sh
@@ -18,8 +18,14 @@ sleep 0.4
xdotool key Return
sleep 1;
xdotool key Ctrl+d
-wait ${XPID}
+sleep 1;
kill ${TPID}
+if pgrep -u $USER xterm
+then
+ kill ${XPID}
+ kill ${RPID}
+ exit 1
+fi
# Get result, kill xvfb
wait ${RPID}
RETV=$?