At least since kernel 3.0.0 writing '0-' to $CPUSET/N/{cpus, mems} files doesn't raise an error. Reading content of these files after writing gives '0'.
Signed-off-by: Stanislav Kholmanskikh <stanislav.kholmansk...@oracle.com> --- .../cpuset_base_ops_testset.sh | 16 ++++++++++++++-- 1 files changed, 14 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 8b21210..126eec5 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 @@ -117,7 +117,6 @@ test_cpus() 0-$((nr_cpus-1)) 0-$((nr_cpus-1)) -1 WRITE_ERROR 0-$nr_cpus WRITE_ERROR - 0- WRITE_ERROR 0--$((nr_cpus-1)) WRITE_ERROR 0,1-$((nr_cpus-2)),$((nr_cpus-1)) 0-$((nr_cpus-1)) 0,1-$((nr_cpus-2)), 0-$((nr_cpus-2)) @@ -125,6 +124,13 @@ test_cpus() AAA WRITE_ERROR EOF # while read cpus result + + tst_kvercmp 3 0 0 + if [ $? -eq 0 ]; then + base_op_test "$CPUSET/1/cpus" "0-" "WRITE_ERROR" + else + base_op_test "$CPUSET/1/cpus" "0-" "0" + fi } test_mems() @@ -144,7 +150,6 @@ test_mems() 0-$((nr_mems-1)) 0-$((nr_mems-1)) -1 WRITE_ERROR 0-$nr_mems WRITE_ERROR - 0- WRITE_ERROR 0--$((nr_mems-1)) WRITE_ERROR 0,1-$((nr_mems-2)),$((nr_mems-1)) 0-$((nr_mems-1)) 0,1-$((nr_mems-2)), 0-$((nr_mems-2)) @@ -152,6 +157,13 @@ test_mems() AAA WRITE_ERROR EOF # while read mems result + + tst_kvercmp 3 0 0 + if [ $? -eq 0 ]; then + base_op_test "$CPUSET/1/mems" "0-" "WRITE_ERROR" + else + base_op_test "$CPUSET/1/mems" "0-" "0" + fi } test_flags() -- 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=60133471&iu=/4140/ostg.clktrk _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list