[LTP] [PATCH v10 2/2] cpuset_memory_testset.sh: Remove test6

Wei Gao via ltp
2025-03-31T13:27:00Z

Signed-off-by: Wei Gao <wegao@suse.com>
---
.../cpuset_memory_testset.sh | 63 ++++---------------
1 file changed, 12 insertions(+), 51 deletions(-)

diff --git a/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh b/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh
index c1e7cea8f..e81d22293 100755
--- a/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh
+++ b/testcases/kernel/controllers/cpuset/cpuset_memory_test/cpuset_memory_testset.sh
@@ -23,7 +23,7 @@
################################################################################

export TCID="cpuset_memory"
-export TST_TOTAL=18
+export TST_TOTAL=17
export TST_COUNT=1

. cpuset_funcs.sh
@@ -181,45 +181,6 @@ test6()
save_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages)
echo $((2*$nr_mems)) > /proc/sys/vm/nr_hugepages

- cpuset_memory_test --mmap-file --hugepage -s $HUGEPAGESIZE >"$MEMORY_RESULT" &
- simple_getresult $! "$CPUSET/0"
-
- umount /hugetlb
- rmdir /hugetlb
-
- echo $save_nr_hugepages > /proc/sys/vm/nr_hugepages
- if [ $(cat /proc/sys/vm/nr_hugepages) -ne $save_nr_hugepages ]; then
- tst_resm TFAIL "can't restore nr_hugepages(nr_hugepages = $save_nr_hugepages)."
- return 1
- fi
-
- if [ "$node" != "0" ]; then
- tst_resm TFAIL "allocate memory on the Node#$node(Expect: Node#0)."
- return 1
- fi
-}
-
-test7()
-{
- cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
- if [ $? -ne 0 ]; then
- cpuset_log_error $CPUSET_TMP/stderr
- tst_resm TFAIL "set general group parameter failed."
- return 1
- fi
-
- check_hugetlbfs
- if [ $? -eq 0 ]; then
- tst_resm TCONF "This system don't support hugetlbfs"
- return 0
- fi
-
- mkdir /hugetlb
- mount -t hugetlbfs none /hugetlb
-
- save_nr_hugepages=$(cat /proc/sys/vm/nr_hugepages)
- echo $((2*$nr_mems)) > /proc/sys/vm/nr_hugepages
-
cpuset_memory_test --shm --hugepage -s $HUGEPAGESIZE --key=7 >"$MEMORY_RESULT" &
simple_getresult $! "$CPUSET/0"

@@ -238,7 +199,7 @@ test7()
fi
}

-test8()
+test7()
{
cpuset_set "$CPUSET/0" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -255,7 +216,7 @@ test8()
fi
}

-test9()
+test8()
{
cpuset_set "$CPUSET/0" "$cpu_of_node0" "1" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -291,7 +252,7 @@ talk2memory_test_for_case_10_11()
wait $1
}

-test10()
+test9()
{
cpuset_set "$CPUSET/1" "$cpus_all" "0" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -329,7 +290,7 @@ test10()
fi
}

-test11()
+test10()
{
cpuset_set "$CPUSET/1" "$cpus_all" "0" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -395,7 +356,7 @@ talk2memory_test_for_case_12_13()
}

-test12()
+test11()
{
cpuset_set "$CPUSET/0" "$cpu_of_node0" "1" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -423,7 +384,7 @@ test12()
}

-test13()
+test12()
{
cpuset_set "$CPUSET/0" "$cpu_of_node0" "1" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -479,7 +440,7 @@ get_the_second()
)
}

-test14()
+test13()
{
cpuset_set "$CPUSET/1" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -527,7 +488,7 @@ test14()
fi
}

-test15()
+test14()
{
cpuset_set "$CPUSET/1" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -583,7 +544,7 @@ test15()
fi
}

-test16()
+test15()
{
cpuset_set "$CPUSET/1" "$cpu_of_node0" "0" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -650,7 +611,7 @@ test16()
fi
}

-test17()
+test16()
{
cpuset_set "$CPUSET/1" "$cpu_of_node0" "1" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
@@ -725,7 +686,7 @@ test17()
fi
}

-test18()
+test17()
{
cpuset_set "$CPUSET/1" "$cpu_of_node0" "1" "0" 2> $CPUSET_TMP/stderr
if [ $? -ne 0 ]; then
--
2.35.3