about summary refs log tree commit homepage
path: root/test/exec
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-02-02 17:37:22 -0800
committerEric Wong <normalperson@yhbt.net>2011-02-02 17:37:22 -0800
commit9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd (patch)
tree7918d54946cb23294f87e5d8a07b27b298262c82 /test/exec
parente597e594ad88dc02d70f7d3521d0d3bdc23739bb (diff)
downloadunicorn-9e7a8114fb0fcc56b475d17f158eaa5b7f1f7bdd.tar.gz
for i in `git ls-files '*.rb'`; do ruby -w -c $i; done
Diffstat (limited to 'test/exec')
-rw-r--r--test/exec/test_exec.rb3
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