From f9d1e9954acfbbc9f3cc9122ba551ffc5ab29e1c Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Tue, 5 Jan 2016 07:32:51 -0800 Subject: [PATCH] Make File.stat() directory test less file system sensitive. --- test/io/file/stat_static_directory.wren | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/io/file/stat_static_directory.wren b/test/io/file/stat_static_directory.wren index b5aa8ad3..4521d105 100644 --- a/test/io/file/stat_static_directory.wren +++ b/test/io/file/stat_static_directory.wren @@ -7,10 +7,10 @@ System.print(stat is Stat) // expect: true System.print(stat.device is Num) // expect: true System.print(stat.inode is Num) // expect: true System.print(stat.mode is Num) // expect: true -System.print(stat.linkCount) // expect: 5 +System.print(stat.linkCount >= 1) // expect: true System.print(stat.user is Num) // expect: true System.print(stat.group is Num) // expect: true System.print(stat.specialDevice) // expect: 0 -System.print(stat.size) // expect: 170 +System.print(stat.size > 0) // expect: true System.print(stat.blockSize is Num) // expect: true System.print(stat.blockCount is Num) // expect: true