   T.equal out.toString('utf8'), msg, "the same message came out as went in"
   cb()
 
+#=================================
+

  T.equal stderr.data().toString('utf8').indexOf(errmsg), 0, "found error message"
  cb()

exports.check_stdout = (T,cb) ->
  await run { name : "echo", args : [ "hello", "world"] }, defer err, out
  T.no_error err
  T.equal out.toString('utf8'), "hello world\n", "got the right output"
  cb()  

exports.check_stdin_1 = (T, cb) ->
  msg = "Now is the time for all good men to come to the aid of the party."


{BufferOutStream,BufferInStream,run} = require '../../lib/main'

#=================================

exports.launch_true = (T,cb) ->
  await run { name : "true" }, defer err
  T.no_error err
  cb()

#=================================

exports.launch_false = (T, cb) ->
  await run { name : 'false' }, defer err
