diff options
author | Mylène Josserand <mylene.josserand@bootlin.com> | 2018-07-13 11:09:33 +0200 |
---|---|---|
committer | Cyril Hrubis <chrubis@suse.cz> | 2018-07-19 14:39:13 +0200 |
commit | 444d9d89eeeb4dc1c60d8f8d369e41f1e2a88a18 (patch) | |
tree | 697b04e6adfbf615f4d3a3875805167ed6dab8dd /testcases/lib | |
parent | 64caf3908ed26c4a3ab2803fac6894406b8c0cbd (diff) |
testcases: Replace "getconf" by "tst_getconf"
Now that tst_getconf is available to use "sysconf()" function
instead of relying on the application "getconf", let's convert
all the tests to it.
Signed-off-by: Mylène Josserand <mylene.josserand@bootlin.com>
Reviewed-by: Li Wang <liwang@redhat.com>
Acked-by: Cyril Hrubis <chrubis@suse.cz>
Diffstat (limited to 'testcases/lib')
-rw-r--r-- | testcases/lib/test.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/testcases/lib/test.sh b/testcases/lib/test.sh index ea211cc82..509d25a77 100644 --- a/testcases/lib/test.sh +++ b/testcases/lib/test.sh @@ -421,9 +421,9 @@ fi if [ "$TST_NEEDS_CHECKPOINTS" = "1" ]; then LTP_IPC_PATH="/dev/shm/ltp_${TCID}_$$" - LTP_IPC_SIZE=$(getconf PAGESIZE) + LTP_IPC_SIZE=$(tst_getconf PAGESIZE) if [ $? -ne 0 ]; then - tst_brkm TBROK "getconf PAGESIZE failed" + tst_brkm TBROK "tst_getconf PAGESIZE failed" fi ROD_SILENT dd if=/dev/zero of="$LTP_IPC_PATH" bs="$LTP_IPC_SIZE" count=1 |