diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-02-26 15:51:29 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-03-03 11:12:59 -0800 |
commit | 29cac8016a09f3a0f9e941ca51db3f0a6df98b60 (patch) | |
tree | 2b982ac77cbd87f269e2f631e16a2d72e7669ff9 | |
parent | 2b2210892cb96790128d18d99ec22b87c6b0cbe3 (diff) | |
download | unicorn-29cac8016a09f3a0f9e941ca51db3f0a6df98b60.tar.gz |
-rw-r--r-- | test/exec/test_exec.rb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 8974faf..9f65ce3 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -9,16 +9,9 @@ do_test = true $unicorn_bin = ENV['UNICORN_TEST_BIN'] || "unicorn" redirect_test_io do - pid = fork do - exec($unicorn_bin, '-v') - exit(1) - end - Process.waitpid(pid) -end -unless $?.success? - STDERR.puts "#{$unicorn_bin} not found in PATH=#{ENV['PATH']}, "\ - "skipping this test" - do_test = false + do_test = system($unicorn_bin, '-v') or \ + STDERR.puts "#{$unicorn_bin} not found in PATH=#{ENV['PATH']}, "\ + "skipping this test" end begin |