diff options
author | Karel Zak | 2014-12-19 13:36:07 +0100 |
---|---|---|
committer | Karel Zak | 2014-12-19 13:40:45 +0100 |
commit | 7ef338f39de0d9661e5a0e234b89e46546b21e22 (patch) | |
tree | d06f735956aba99b6bc31b6c17a3e31904a621da /tests/ts/ipcs | |
parent | more: blacklist unsigned integer overflow [AddressSanitizer] (diff) | |
download | kernel-qcow2-util-linux-7ef338f39de0d9661e5a0e234b89e46546b21e22.tar.gz kernel-qcow2-util-linux-7ef338f39de0d9661e5a0e234b89e46546b21e22.tar.xz kernel-qcow2-util-linux-7ef338f39de0d9661e5a0e234b89e46546b21e22.zip |
tests: don't check the current ipcs limits
The ipcs/limit test checks the current kernel limits, but we have no
clue about the current setting, so on on 64bit system it may overflow.
It's better to test for well known limits only. For the random setting
is there ipcs/limit2 test.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/ts/ipcs')
-rw-r--r-- | tests/ts/ipcs/functions.sh | 9 | ||||
-rwxr-xr-x | tests/ts/ipcs/limits | 5 |
2 files changed, 7 insertions, 7 deletions
diff --git a/tests/ts/ipcs/functions.sh b/tests/ts/ipcs/functions.sh index 297d34f76..80c9416e7 100644 --- a/tests/ts/ipcs/functions.sh +++ b/tests/ts/ipcs/functions.sh @@ -64,14 +64,17 @@ IPCS_IDX=$(seq 0 $(( ${#IPCS_PROCFILES[*]} - 1 ))) # checker function ipcs_limits_check { for i in $IPCS_IDX; do + echo -n ${IPCS_PROCFILES[$i]} a=$(eval ${IPCS_KERNEL_CMD[$i]}) b=$(eval ${IPCS_CMD[$i]}) - #echo -n " RAW: " - #cat ${IPCS_PROCFILES[$i]} - #echo "CMD: ${ICPS_KERNEL_CMD[$i]}" + #echo + #echo "KERNEL-CMD: ${IPCS_KERNEL_CMD[$i]}" + #echo "KERNEL-RAW: $(cat ${IPCS_PROCFILES[$i]})" + #echo "IPCS-CMD: ${IPCS_CMD[$i]}" + #echo if [ x"$a" == x"$b" ]; then echo " OK" diff --git a/tests/ts/ipcs/limits b/tests/ts/ipcs/limits index 851d4edfa..9048e4dbb 100755 --- a/tests/ts/ipcs/limits +++ b/tests/ts/ipcs/limits @@ -35,15 +35,12 @@ for i in $IPCS_IDX; do SHM_ORG[$i]=$(cat ${IPCS_PROCFILES[$i]}) done >> $TS_OUTPUT -ts_log "check for difference between kernel and IPC" -ipcs_limits_check >> $TS_OUTPUT - ts_log "maximalize kernel setting" for i in $IPCS_IDX; do echo ${IPCS_LIMITS[$i]} >> ${IPCS_PROCFILES[$i]} done >> $TS_OUTPUT -ts_log "re-check for difference between kernel and IPC" +ts_log "check for difference between kernel and IPC" ipcs_limits_check >> $TS_OUTPUT ts_log "write original values to kernel" |