]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (pipesz) use helper to get pagesize
authorKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 10:23:36 +0000 (12:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 6 Jun 2022 10:23:36 +0000 (12:23 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/ts/misc/pipesz

index 25724cd4c670fa6bd56efcf668f272f4d66ad65b..4668e0198fe53fefb8cf61b30320f5ac6ebfca8f 100755 (executable)
@@ -18,11 +18,12 @@ TS_DESC="pipesz"
 . $TS_TOPDIR/functions.sh
 ts_init "$*"
 
-set -o pipefail
+ts_check_test_command "$TS_CMD_PIPESZ"
+ts_check_test_command "$TS_HELPER_SYSINFO"
 
-DEFAULT_PIPE_SIZE=$(($(getconf PAGE_SIZE) * 16))
+set -o pipefail
 
-ts_check_test_command "$TS_CMD_PIPESZ"
+DEFAULT_PIPE_SIZE=$(($($TS_HELPER_SYSINFO pagesize) * 16))
 
 ts_init_subtest "set-fd-bad"
 $TS_CMD_PIPESZ --check --set 4096 --fd 42 >> $TS_OUTPUT 2>> $TS_ERRLOG