tests: add test case for #239

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui
2019-09-23 21:14:02 +01:00
parent 33aa805048
commit 44fd3f93f7
4 changed files with 58 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
#!/bin/sh
set -x
set -xe
if [ -z $DISPLAY ]; then
exec xvfb-run -s "+extension composite" -a $0 $1 $2 $3
fi
@@ -11,9 +11,9 @@ echo "Running test $2"
compton_pid=$!
$3
kill -INT $compton_pid
wait $compton_pid
kill -INT $compton_pid || true
cat log
rm log
wait $compton_pid