]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
fadvise: (test) don't compare fincore page counts
authorThomas Weißschuh <thomas@t-8ch.de>
Sun, 21 May 2023 19:44:20 +0000 (21:44 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Tue, 5 Dec 2023 21:55:42 +0000 (22:55 +0100)
These depend on the machines pagesize and are therefore not a good
comparision.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/expected/fadvise/drop
tests/ts/fadvise/drop

index f2360b56fb2ad97a7c6ff688d7e3601091393a7c..25f23e050a83c8cf42d7124e4c1722b990956472 100644 (file)
@@ -1,23 +1,23 @@
-  RES PAGES SIZE FILE
-  32K     8  32K ddtest
+  RES SIZE FILE
+  32K  32K ddtest
 
 whole file
 status: 0
-RES PAGES SIZE FILE
- 0B     0  32K ddtest
+RES SIZE FILE
+ 0B  32K ddtest
 
 offset: 8192
 status: 0
-RES PAGES SIZE FILE
- 8K     2  32K ddtest
+RES SIZE FILE
+ 8K  32K ddtest
 
 length: 16384
 status: 0
-  RES PAGES SIZE FILE
-  16K     4  32K ddtest
+  RES SIZE FILE
+  16K  32K ddtest
 
 offset: 8192, length: 16384 fd: 42
 status: 0
-  RES PAGES SIZE FILE
-  16K     4  32K ddtest
+  RES SIZE FILE
+  16K  32K ddtest
 
index 8869b7da4d6e958a83cf0c3a8b9cec3f48281491..6c4298e8721a82d34a98be5c92cf24c313e7d76a 100755 (executable)
@@ -29,7 +29,7 @@ create_file() {
 }
 
 do_fincore() {
-    "$TS_CMD_FINCORE" "$FILE"
+    "$TS_CMD_FINCORE" -o RES,SIZE,FILE "$FILE"
 }
 
 {