Commit 2cb58dda authored by Niels Möller's avatar Niels Möller
Browse files

(spawn_xvfb): Explicitly setup the xauthority file using xauth add,

don't rely on xauth generate and the X11 security extension.

Rev: src/testsuite/functions.sh:1.60
parent 979c956d
......@@ -191,10 +191,16 @@ spawn_lshg () {
}
spawn_xvfb () {
$XVFB -nolisten tcp $TEST_DISPLAY &
rm $XAUTHORITY
# Set up authorization the old-fashioned way; The security
# extension used by xauth generate is not always supported.
$XAUTH <<EOF
add $TEST_DISPLAY . `../lsh-keygen -a symmetric --bit-length 128`
EOF
$XVFB -auth $XAUTHORITY -nolisten tcp $TEST_DISPLAY &
at_exit "kill $!"
sleep 3
xauth generate $TEST_DISPLAY .
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment