diff options
author | Martin Pärtel <martin.partel@gmail.com> | 2012-01-24 17:24:48 +0200 |
---|---|---|
committer | Martin Pärtel <martin.partel@gmail.com> | 2012-01-24 17:24:48 +0200 |
commit | d8286ccf49e01e6abbac953c08c713f82a01f116 (patch) | |
tree | 12d7e001a3cd8238e4f9bbca9ed3e160f9985b00 | |
parent | f43b6e544f9fdc33f21cd03b091d024ac75307fe (diff) | |
download | bindfs-d8286ccf49e01e6abbac953c08c713f82a01f116.tar.gz |
Ruby 1.9 fixes to tests.
-rwxr-xr-x | tests/test_bindfs.rb | 5 | ||||
-rwxr-xr-x | tests/test_concurrent.rb | 2 |
2 files changed, 4 insertions, 3 deletions
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 <http://www.gnu.org/licenses/>. # -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 diff --git a/tests/test_concurrent.rb b/tests/test_concurrent.rb index f07c031..3b2030d 100755 --- a/tests/test_concurrent.rb +++ b/tests/test_concurrent.rb @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with bindfs. If not, see <http://www.gnu.org/licenses/>. # -require 'common.rb' +require './common.rb' raise "Please run this as root" unless Process.uid == 0 |