Browse Source

test: disable tests requiring math headers

Waldemar Brodkorb 8 years ago
parent
commit
61cf47568f
2 changed files with 7 additions and 0 deletions
  1. 3 0
      test/Makefile
  2. 4 0
      test/locale-mbwc/Makefile.in

+ 3 - 0
test/Makefile

@@ -21,6 +21,9 @@ endif
 ifneq ($(UCLIBC_HAS_THREADS)$(ARCH_USE_MMU),yy)
 	DIRS := $(filter-out pthread,$(DIRS))
 endif
+ifneq ($(UCLIBC_HAS_FLOATS),y)
+	DIRS := $(filter-out math,$(DIRS))
+endif
 ifneq ($(UCLIBC_HAS_FULL_RPC),y)
 	DIRS := $(filter-out rpc,$(DIRS))
 endif

+ 4 - 0
test/locale-mbwc/Makefile.in

@@ -21,6 +21,10 @@ TESTS := tst_iswalnum tst_iswalpha tst_iswcntrl          \
 # NOTE: For now disabled tst_strfmon to avoid build failure.
 TESTS_DISABLED := tst_strfmon
 
+ifneq ($(UCLIBC_HAS_FLOATS),y)
+TESTS_DISABLED += tst_swscanf tst_wcstod
+endif
+
 DODIFF_rint     := 1
 
 EXTRA_CFLAGS    := -D__USE_GNU -fno-builtin -fPIC