Skip to content

Commit

Permalink
Merge pull request #172 from ppentchev/pp-xvfb-display
Browse files Browse the repository at this point in the history
make sure all test X clients connect to the Xvfb instance
  • Loading branch information
sagb authored Jun 9, 2024
2 parents 4c5a9f5 + c4fada6 commit 2c4c750
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/run-in-xvfb.test
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ start_x()
sh -c "mkdir -p /tmp/.X11-unix ; chmod 1777 /tmp/.X11-unix" >/dev/null
Xvfb :200 -ac &
export xvfb=$!
export DISPLAY=:200
for ms100 in `seq 1 50` ; do
sleep 0.1
if DISPLAY=:200 xprop -root >/dev/null ; then
if xprop -root >/dev/null ; then
return
fi
done
Expand All @@ -75,7 +76,7 @@ stop_x()

start_alttab()
{
DISPLAY=:200 "$ALTTAB" -w 0 -vv &
"$ALTTAB" -w 0 -vv &
export alttab=$!
sleep 1
}
Expand All @@ -92,7 +93,7 @@ open_sample_windows()
{
eyes=""
for c in `seq 1 7` ; do
DISPLAY=:200 xeyes &
xeyes &
eyes="${eyes} $!"
done
export eyes
Expand All @@ -109,7 +110,6 @@ close_sample_windows()

alttab_simple_cycle()
{
DISPLAY=:200
xdotool keydown Alt_L
for c in $(seq 1 20); do
sleep 0.1
Expand Down

0 comments on commit 2c4c750

Please sign in to comment.