Fix msp tests to use unused file descriptor

This commit is contained in:
Jeremy Lakeman 2018-04-24 12:53:42 +09:30
parent abdb6867cd
commit 2f57fe3a47

View File

@ -24,13 +24,13 @@ source "${0%/*}/../testdefs.sh"
_simulator() {
# TODO timeout & failure reporting?
"$servald_build_root/simulator" <&8 >$SIM_OUT
"$servald_build_root/simulator" <&9 >$SIM_OUT
}
start_simulator() {
SIM_IN="$PWD/SIM_IN"
SIM_OUT="$PWD/SIM_OUT"
mkfifo "$SIM_IN"
exec 8<>"$SIM_IN"
exec 9<>"$SIM_IN"
fork %simulator _simulator
}
simulator_command() {