From: Karel Zak Date: Mon, 6 Jun 2022 10:23:36 +0000 (+0200) Subject: tests: (pipesz) use helper to get pagesize X-Git-Tag: v2.39-rc1~636 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44e64c574d3fa13bac315ed5f1c79422d1d8a0d0;p=thirdparty%2Futil-linux.git tests: (pipesz) use helper to get pagesize Signed-off-by: Karel Zak --- diff --git a/tests/ts/misc/pipesz b/tests/ts/misc/pipesz index 25724cd4c6..4668e0198f 100755 --- a/tests/ts/misc/pipesz +++ b/tests/ts/misc/pipesz @@ -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