f44c92c1a38f06d93be415790e8e918ab5a381ab
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 0.9.33.2 / 0059-test-cater-for-config.patch
1 From 7598eeaa1defa2884adaa890bb115c493d69cc35 Mon Sep 17 00:00:00 2001
2 From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
3 Date: Sat, 23 Feb 2013 06:39:41 +0000
4 Subject: test: cater for config
5
6 Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
7 ---
8 (limited to 'test')
9
10 diff --git a/test/math/Makefile.in b/test/math/Makefile.in
11 index e76cbdb..beef650 100644
12 --- a/test/math/Makefile.in
13 +++ b/test/math/Makefile.in
14 @@ -1,14 +1,16 @@
15  # uClibc math tests
16  # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
17  
18 -TESTS := basic-test tst-definitions test-fpucw test-float test-ifloat test-double test-idouble \
19 -    rint signgam ilogb
20  # gamma (removed from TESTS, need to add "small errors are ok" machinery there)
21 -ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),y)
22 -TESTS += test-ldouble test-ildoubl compile_test c99_test
23 +TESTS_DISABLED := gamma
24 +ifeq ($(UCLIBC_HAS_LONG_DOUBLE_MATH),)
25 +TESTS_DISABLED += test-ldouble test-ildoubl compile_test c99_test
26  else
27  CFLAGS_basic-test := -DNO_LONG_DOUBLE
28  endif
29 +ifeq ($(DO_C99_MATH),)
30 +TESTS_DISABLED += test-float test-ifloat test-double test-idouble rint signgam ilogb
31 +endif
32  
33  DODIFF_rint     := 1
34  DODIFF_signgam  := 1
35 diff --git a/test/misc/Makefile.in b/test/misc/Makefile.in
36 index 9b74d22..52a3e71 100644
37 --- a/test/misc/Makefile.in
38 +++ b/test/misc/Makefile.in
39 @@ -4,6 +4,7 @@
40  TESTS_DISABLED := outb tst-fnmatch bug-glob1 tst-gnuglob
41  ifeq  ($(UCLIBC_HAS_LFS),)
42  TESTS_DISABLED += dirent64
43 +TESTS_DISABLED += tst-statfs # assuming host has LFS on
44  endif
45  CFLAGS_dirent64 := -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
46  
47 diff --git a/test/misc/tst-statfs.c b/test/misc/tst-statfs.c
48 index 44ab3aa..b8b4229 100644
49 --- a/test/misc/tst-statfs.c
50 +++ b/test/misc/tst-statfs.c
51 @@ -1,5 +1,3 @@
52 -#define _FILE_OFFSET_BITS 64
53 -
54  #include <sys/vfs.h>
55  #include <errno.h>
56  #include <stdio.h>
57 diff --git a/test/misc/tst-statvfs.c b/test/misc/tst-statvfs.c
58 index c1e8fde..4b67719 100644
59 --- a/test/misc/tst-statvfs.c
60 +++ b/test/misc/tst-statvfs.c
61 @@ -1,5 +1,3 @@
62 -#define _FILE_OFFSET_BITS 64
63 -
64  #include <sys/statvfs.h>
65  #include <errno.h>
66  #include <stdio.h>
67 diff --git a/test/unistd/Makefile.in b/test/unistd/Makefile.in
68 index 24b9a37..cfef22e 100644
69 --- a/test/unistd/Makefile.in
70 +++ b/test/unistd/Makefile.in
71 @@ -5,7 +5,7 @@ ifeq ($(UCLIBC_HAS_LFS),)
72  TESTS_DISABLED := tst-preadwrite64 tst-posix_fallocate64
73  endif
74  ifeq ($(UCLIBC_HAS_ADVANCED_REALTIME),)
75 -TESTS_DISABLED := tst-posix_fallocate
76 +TESTS_DISABLED += tst-posix_fallocate
77  endif
78  OPTS_getopt      := -abcXXX -9
79  OPTS_getopt_long := --add XXX --delete YYY --verbose
80 --
81 cgit v0.9.1