OSDN Git Service

Move regex tests to their own subdir and dont run them if regex is disabled
authorPeter S. Mazinger <ps.m@gmx.net>
Wed, 1 Mar 2006 20:39:48 +0000 (20:39 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Wed, 1 Mar 2006 20:39:48 +0000 (20:39 -0000)
test/Makefile
test/misc/Makefile
test/regex/Makefile
test/regex/tst-regex2.c [moved from test/misc/tst-regex2.c with 100% similarity]
test/regex/tst-regexloc.c [moved from test/misc/tst-regexloc.c with 100% similarity]

index 1402c4c..98f88e6 100644 (file)
@@ -24,6 +24,9 @@ endif
 ifneq ($(UCLIBC_HAS_FULL_RPC),y)
        DIRS := $(filter-out rpc,$(DIRS))
 endif
+ifneq ($(UCLIBC_HAS_REGEX),y)
+       DIRS := $(filter-out regex,$(DIRS))
+endif
 DIRS := $(filter-out math,$(DIRS))
 
 
index fb55054..4c10e0d 100644 (file)
@@ -6,7 +6,6 @@ TESTS_DISABLED := outb tst-fnmatch bug-glob1
 include ../Test.mak
 
 CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-CFLAGS_tst-regex2 := -std=c99
 
 DODIFF_dirent    := 1
 DODIFF_dirent64  := 1
index 827d540..849b674 100644 (file)
@@ -5,6 +5,8 @@ TESTS_DISABLED := testregexn
 
 include ../Test.mak
 
+CFLAGS_tst-regex2 := -std=c99
+
 CFLAGS-OMIT_testregex.c := -D_GNU_SOURCE
 CFLAGS-OMIT_testregexc.c := -D_GNU_SOURCE
 CFLAGS-OMIT_testregexf.c := -D_GNU_SOURCE