mem: mbind01: not work in 32bit system
PATCH 1/1 mem: mbind01: not work in 32bit system
when execute mem/mbind01 testcase under 32bit systems, it returns ENOSYS error. This patch checks wordsize before executing the actual case. And this testcase appears to be better in syscalls/mbind dir, I moved it there.
--- runtest/mm | 2 - runtest/syscalls | 11 +- testcases/kernel/mem/mbind/Makefile | 26 ----- testcases/kernel/mem/mbind/mbind01.c | 141 ---------------------------- testcases/kernel/syscalls/mbind/mbind02.c | 146 +++++++++++++++++++++++++++++ 5 files changed, 152 insertions(+), 174 deletions(-) delete mode 100644 testcases/kernel/mem/mbind/Makefile delete mode 100644 testcases/kernel/mem/mbind/mbind01.c create mode 100644 testcases/kernel/syscalls/mbind/mbind02.c
runtest/mm +0 -2
@@ -72,8 +72,6 @@ ksm04_1 ksm04 -u 128 cpuset01 cpuset01 -I 3600 -mbind01 mbind01 - oom01 oom01 oom02 oom02 oom03 oom03
runtest/syscalls +6 -5
@@ -505,6 +505,7 @@ lstat03_64 lstat03_64 mallopt01 mallopt01 mbind01 mbind01 +mbind02 mbind02 memset01 memset01 memcmp01 memcmp01
@@ -573,7 +574,7 @@ mount1234 test_mount move_pages01 move_pages.sh 01 move_pages02 move_pages.sh 02 -move_pages03 cd $LTPROOT/testcases/bin && chown root move_pages03 && chmod 04755 move_pages03 && move_pages.sh 03 +move_pages03 cd $LTPROOT/testcases/bin && chown root move_pages03 && chmod 04755 move_pages03 && move_pages.sh 03 move_pages04 move_pages.sh 04 move_pages05 move_pages.sh 05 move_pages06 move_pages.sh 06
@@ -675,7 +676,7 @@ open10 open10 openat01 openat01 mincore01 mincore01 -mincore02 mincore02 +mincore02 mincore02 madvise01 madvise01 madvise02 madvise02
@@ -689,8 +690,8 @@ pause01 pause01 pause02 pause02 pause03 pause03 -# The personality() system call is poorly documented -# and difficult to figure out how to use by looking +# The personality() system call is poorly documented +# and difficult to figure out how to use by looking # at the different architecture specific kernel files. #personality01 personality01 #personality02 personality02
@@ -1200,7 +1201,7 @@ truncate04_64 truncate04_64 # This syscall is obsolete. The latest glibc does not even # include the ulimit.h file anymore. The test will fail # because the error handling has been simplified. -# +# ulimit01 ulimit01 umask01 umask01
testcases/kernel/mem/mbind/Makefile deleted +0 -26
@@ -1,26 +0,0 @@ -# -# Copyright (C) 2010 Red Hat, Inc. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or (at -# your option) any later version. -# -# This program is distributed in the hope that it will be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -# General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA -# 02110-1301, USA. -# - -top_srcdir ?= ../../../.. - -include $(top_srcdir)/include/mk/testcases.mk - -LDLIBS += $(NUMA_LIBS) - -include $(top_srcdir)/include/mk/generic_leaf_target.mk
testcases/kernel/mem/mbind/mbind01.c deleted +0 -141
142 lines not on this page · raw message
testcases/kernel/syscalls/mbind/mbind02.c new file +146 -0
146 lines not on this page · raw message
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
Hi!
Could you, pretty please, split this into patch that fixes 32bit systems and patch that moves the testcase (as it is now, it's hard to pinpoint the actuall change without comparing these two files by hand).
Signature · 13 lines
Cyril Hrubis [email protected] ------------------------------------------------------------------------------ Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list