From d8286ccf49e01e6abbac953c08c713f82a01f116 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Tue, 24 Jan 2012 17:24:48 +0200 Subject: Ruby 1.9 fixes to tests. --- tests/test_bindfs.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests/test_bindfs.rb') diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb index 8d5b18f..4c21de2 100755 --- a/tests/test_bindfs.rb +++ b/tests/test_bindfs.rb @@ -18,7 +18,7 @@ # along with bindfs. If not, see . # -require 'common.rb' +require './common.rb' include Errno @@ -88,7 +88,8 @@ testenv("--ctime-from-mtime") do sleep(1.1) chmod(0777, mf) - assert { File.stat(mf).ctime == File.stat(mf).mtime } + # to_i gives us prceision of 1 sec + assert { File.stat(mf).ctime.to_i == File.stat(mf).mtime.to_i } assert { File.stat(sf).ctime > File.stat(sf).mtime } end -- cgit v1.2.3