Currently, the newer_64 testcases are built and run by default
This causes some unnecessary "failed cases" on machines which
don't support them.

This patch adds build time switches for turn off those tests.

Usage example:

    make TST_NEWER_64=no
---
 testcases/kernel/syscalls/utils/newer_64.mk |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/testcases/kernel/syscalls/utils/newer_64.mk 
b/testcases/kernel/syscalls/utils/newer_64.mk
index 06bd1c1..045ebbd 100644
--- a/testcases/kernel/syscalls/utils/newer_64.mk
+++ b/testcases/kernel/syscalls/utils/newer_64.mk
@@ -23,6 +23,7 @@
 # as compat_16.mk does on foo16. See both compat_16.mk
 # and Makefile for fadvise test case.
 
+ifneq ($(TST_NEWER_64), no)
 TARGETS_64 = $(patsubst %.c,%_64,$(SRCS))
 TARGETS  +=  $(TARGETS_64)
 
@@ -42,3 +43,5 @@ endif
 %_64.o: %.c
        $(COMPILE.c) $(OUTPUT_OPTION) $<
 %_64: CFLAGS += -D$(DEF_64)=1
+
+endif
-- 
1.5.6.5


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to