RHEL6 kernel backported a fix to not produce
an error in case of writing '0-' to cpuset/N/{cpus,mems} file.

Signed-off-by: Stanislav Kholmanskikh <[email protected]>
---
 .../cpuset_base_ops_testset.sh                     |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh
 
b/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh
index 3fa905c..63a9dc5 100755
--- 
a/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh
+++ 
b/testcases/kernel/controllers/cpuset/cpuset_base_ops_test/cpuset_base_ops_testset.sh
@@ -128,7 +128,7 @@ test_cpus()
                base_op_test "$CPUSET/1/cpus" "0,1-$((nr_cpus-2))," 
"0-$((nr_cpus-2))"
        fi
 
-       tst_kvercmp 3 0 0
+       tst_kvercmp2 3 0 0 "RHEL6:2.6.32"
        if [ $? -eq 0 ]; then
                base_op_test "$CPUSET/1/cpus" "0-" "WRITE_ERROR"
        else
@@ -164,7 +164,7 @@ test_mems()
                base_op_test "$CPUSET/1/mems" "0,1-$((nr_mems-2))," 
"0-$((nr_mems-2))"
        fi
 
-       tst_kvercmp 3 0 0
+       tst_kvercmp2 3 0 0 "RHEL6:2.6.32"
        if [ $? -eq 0 ]; then
                base_op_test "$CPUSET/1/mems" "0-" "WRITE_ERROR"
        else
-- 
1.7.1


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to