diff options
author | Carl Lerche <me@carllerche.com> | 2015-07-10 13:54:17 -0700 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2015-07-10 13:54:17 -0700 |
commit | a5e9cc637b187d5c3446d1b90abea2c67031d9e9 (patch) | |
tree | d0afef5ca15e7096dad76e12cd5c958ca03bf41b /test/test_stat.rs | |
parent | ca14371749d25f4d4af18ca3e45fa487928ab04d (diff) | |
download | nix-a5e9cc637b187d5c3446d1b90abea2c67031d9e9.zip |
Fix comparison
Diffstat (limited to 'test/test_stat.rs')
-rw-r--r-- | test/test_stat.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_stat.rs b/test/test_stat.rs index 18f6fa8f..07a0f239 100644 --- a/test/test_stat.rs +++ b/test/test_stat.rs @@ -23,7 +23,7 @@ fn assert_stat_results(stat_result: Result<FileStat>) { assert!(stats.st_rdev == 0); // no special device assert!(stats.st_size == 0); // size is 0 because we did not write anything to the file assert!(stats.st_blksize > 0); // must be positive integer, exact number machine dependent - assert!(stats.st_blocks >= 16); // Up to 16 blocks can be allocated for a blank file + assert!(stats.st_blocks <= 16); // Up to 16 blocks can be allocated for a blank file } Err(_) => panic!("stat call failed") // if stats system call fails, something is seriously wrong on that machine } |