  
 -  platform_is_not :freebsd, :netbsd, :openbsd, :darwin do
 -    it "always succeeds with any numeric values" do
--      vals = [-2**30, -2**16, -256, -2, -1,
--        -0.5, 0, 1, 2, 5.555575, 16, 32, 64, 256, 2**16, 2**30]
+-      vals = [-2**30, -2**16, -2**8, -2, -1,
+-        -0.5, 0, 1, 2, 5.555575, 16, 32, 64, 2**8, 2**16, 2**30]
 -      vals.each { |v|
 -        lambda { @file.chmod(v) }.should_not raise_error
 -      }

-  # -256, -2 and -1 raise Errno::EFTYPE on NetBSD
-  platform_is :netbsd do
-    it "always succeeds with any numeric values" do
-      vals = [-2**30, -2**16, #-256, -2, -1,
-        -0.5, 0, 1, 2, 5.555575, 16, 32, 64, 256, 2**16, 2**30]
-      vals.each { |v|
-        lambda { @file.chmod(v) }.should_not raise_error
-      }

 
-  platform_is_not :freebsd, :darwin do
-    it "always succeeds with any integer values" do
-      vals = [-2**30, -2**16, -2**8, -2,
-              -1.5, -1, 0.5, 0, 1, 2, 7.77777, 16, 32, 64, 2**8, 2**16, 2**30]
-      vals.each { |v|
-        lambda { File.umask(v) }.should_not raise_error
-      }
