about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-03-23 11:56:04 -0700
committerEric Wong <normalperson@yhbt.net>2012-03-23 11:56:04 -0700
commit2cab4f2fa642241dbcaf8881d39bd275a59dc67b (patch)
treeeabfc653def68ca2fd2c620b6f0165eaca4067d1
parentce62ddbef053ad31af2f3ec6fcb7d2488859383d (diff)
downloadkgio-2cab4f2fa642241dbcaf8881d39bd275a59dc67b.tar.gz
We can't actually test for EPERM without changing
permissions/ownership, and we can't do that without root...
-rw-r--r--test/test_tryopen.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_tryopen.rb b/test/test_tryopen.rb
index 80b5de3..8a8278c 100644
--- a/test/test_tryopen.rb
+++ b/test/test_tryopen.rb
@@ -26,11 +26,11 @@ class TestTryopen < Test::Unit::TestCase
     assert_equal :ENOENT, tmp
   end
 
-  def test_tryopen_EPERM
+  def test_tryopen_EACCES
     tmp = Tempfile.new "tryopen"
     File.chmod 0000, tmp.path
     tmp = Kgio::File.tryopen(tmp.path)
-    assert_equal :EACCES, tmp
+    assert_equal(:EACCES, tmp)
   end
 
   def test_tryopen_readwrite