# output about not_busy is non-deterministic
# (so eliminate it)

0 m2jr -sc foo.m
0 jrc *.jr
0 javac jrGen/*.java
0 cd jrGen
0 jr_rmic
0 cd ..
0 jrrun test > sc.out 2>&1
0 grep "not_busy" sc.out >/dev/null
0 grep -v "not_busy" sc.out > gsc.out
0 scmp gall.std gsc.out
0 rm -rf jrGen core *.out foo.jr m_condvar.jr

0 m2jr -sw foo.m
0 jrc *.jr
0 javac jrGen/*.java
0 cd jrGen
0 jr_rmic
0 cd ..
0 jrrun test > sw.out 2>&1
0 grep "not_busy" sw.out >/dev/null
0 grep -v "not_busy" sw.out > gsw.out
0 scmp gall.std gsw.out
0 rm -rf jrGen core *.out foo.jr m_condvar.jr

0 m2jr -su foo.m
0 jrc *.jr
0 javac jrGen/*.java
0 cd jrGen
0 jr_rmic
0 cd ..
0 jrrun test > su.out 2>&1
0 grep "not_busy" su.out >/dev/null
0 grep -v "not_busy" su.out > gsu.out
0 scmp gall.std gsu.out
0 rm -rf jrGen core *.out foo.jr m_condvar.jr

# won't work with SX so see separate test of it in ../bb1_sx
0 m2jr -sx foo.m
0 jrc *.jr
0 javac jrGen/*.java
0 cd jrGen
0 jr_rmic
0 cd ..
0 jrrun test > su.out 2>&1
0 grep "not_busy" su.out >/dev/null
0 grep -v "not_busy" su.out > gsu.out
0 scmp gall.std gsu.out
0 rm -rf jrGen core *.out foo.jr m_condvar.jr
