diff options
author | Eric Wong <normalperson@yhbt.net> | 2011-02-02 17:37:22 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2011-02-02 17:37:22 -0800 |
commit | 9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd (patch) | |
tree | 7918d54946cb23294f87e5d8a07b27b298262c82 /test/exec/test_exec.rb | |
parent | e597e594ad88dc02d70f7d3521d0d3bdc23739bb (diff) | |
download | unicorn-9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd.tar.gz |
for i in `git ls-files '*.rb'`; do ruby -w -c $i; done
Diffstat (limited to 'test/exec/test_exec.rb')
-rw-r--r-- | test/exec/test_exec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb index 581d5d5..0f6b083 100644 --- a/test/exec/test_exec.rb +++ b/test/exec/test_exec.rb @@ -797,7 +797,6 @@ EOF def test_daemonize_redirect_fail pid_file = "#{@tmpdir}/test.pid" - log = Tempfile.new('unicorn_test_log') ucfg = Tempfile.new('unicorn_test_config') ucfg.syswrite("pid #{pid_file}\"\n") err = Tempfile.new('stderr') @@ -1040,7 +1039,7 @@ EOF lock_path = "#{Dir::tmpdir}/unicorn_test." \ "#{Unicorn::Const::DEFAULT_LISTEN}.lock" begin - lock = File.open(lock_path, File::WRONLY|File::CREAT|File::EXCL, 0600) + File.open(lock_path, File::WRONLY|File::CREAT|File::EXCL, 0600) yield rescue Errno::EEXIST lock_path = nil |