From 4fbf24948069f5432696a390b580ba8758789dc1 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Tue, 5 Jan 2016 18:24:47 +0100 Subject: Update window test. --- test/run_window_test.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test') 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=$? -- cgit v1.2.3