summaryrefslogtreecommitdiff
path: root/libs/cairo-1.16.0/test/run-cairo-test-suite.sh
blob: 567d2b14be2a248e50aae12f6b509d07fff36b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash

set -m

if `which gnome-screensaver-command`; then
	gnome-screensaver-command -i -n "cairo-test-suite" -r "Cairo needs to read back from the screen in order to test rendering to xlib" &
	pid=$!

	restore_screensaver() { kill $pid; }
else
	restore_screensaver() { :; }
fi

trap cleanup SIGINT SIGTERM

./cairo-test-suite "$*"

restore_screensaver