Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2003-11-08 02:47:05 +0300
committerJeff Johnston <jjohnstn@redhat.com>2003-11-08 02:47:05 +0300
commitfe359733a40391e86514cb26cbe7a79416313881 (patch)
tree021953775edbc4d818fccce2955b8586cf7da8be /newlib/testsuite
parent0a5ea9471bff6e0fb314b0a6361c6f57224f0505 (diff)
2003-11-07 Jeff Johnston <jjohnstn@redhat.com>
* configure.host: Remove -DLOOSE_KERNEL_NAMES flag for linux x86 build. * iconvdata/Makefile.am: Make dependent on newlib's configure.host and set up default flags to pass to aclocal. * iconvdata/Makefile.in: Regenerated. * libc/sys/linux/Makefile.am: Add _ELIX_LEVEL_4 getlogin, getpwnam, and getpwuid routines. * libc/sys/linux/Makefile.in: Regenerated. * libc/sys/linux/getlogin.c: New stub file to allow x86-linux applications to link with newlib's shared libc library. * libc/sys/linux/getpwnam.c: Ditto. * libc/sys/linux/getpwuid.c: Ditto. * libc/sys/linux/sys/types.h: Include <features.h> and supply types that were formerly supplied by /usr/include/linux/types.h with kernel types. * testsuite/newlib.wctype/twctype.c: Fix testcase to properly test _ELIX_LEVEL macro.
Diffstat (limited to 'newlib/testsuite')
-rw-r--r--newlib/testsuite/newlib.wctype/twctype.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/newlib/testsuite/newlib.wctype/twctype.c b/newlib/testsuite/newlib.wctype/twctype.c
index 7adf5080d..d206876f8 100644
--- a/newlib/testsuite/newlib.wctype/twctype.c
+++ b/newlib/testsuite/newlib.wctype/twctype.c
@@ -8,9 +8,8 @@
int main()
{
- if (_ELIX_LEVEL == 1)
- { /* no testing..wctype functions aren't present */ }
- else if (_MB_LEN_MAX == 1)
+#if !defined(_ELIX_LEVEL) || _ELIX_LEVEL > 1
+ if (_MB_LEN_MAX == 1)
{
CHECK (iswalpha(L'a'));
CHECK (!iswalpha(L'3'));
@@ -59,6 +58,7 @@ int main()
CHECK (iswxdigit(L'A'));
CHECK (!iswxdigit(0x1f48));
}
+#endif
exit (0);
}