diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-07-29 13:59:42 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-07-29 13:59:42 +0000 |
commit | ace38fb7879fc0747a14d7de6cf913b01b5744db (patch) | |
tree | fa47bd87690f1e60e753f4db26f055d0baed1d94 | |
parent | 2011-07-29 Jennifer Averett <Jennifer.Averett@OARcorp.com> (diff) | |
download | rtems-ace38fb7879fc0747a14d7de6cf913b01b5744db.tar.bz2 |
2011-07-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* POSIX/iconv.c, POSIX/iconv_open.c, POSIX/iconv_close.c: New.
* POSIX/Makefile.am: Add iconv, iconv_open, iconv_close.
-rw-r--r-- | testsuites/libtests/ChangeLog | 5 | ||||
-rw-r--r-- | testsuites/libtests/POSIX/Makefile.am | 9 | ||||
-rw-r--r-- | testsuites/libtests/POSIX/iconv.c | 30 | ||||
-rw-r--r-- | testsuites/libtests/POSIX/iconv_close.c | 24 | ||||
-rw-r--r-- | testsuites/libtests/POSIX/iconv_open.c | 23 |
5 files changed, 91 insertions, 0 deletions
diff --git a/testsuites/libtests/ChangeLog b/testsuites/libtests/ChangeLog index 90bf5ffa89..813151734c 100644 --- a/testsuites/libtests/ChangeLog +++ b/testsuites/libtests/ChangeLog @@ -1,3 +1,8 @@ +2011-07-29 Ralf Corsépius <ralf.corsepius@rtems.org> + + * POSIX/iconv.c, POSIX/iconv_open.c, POSIX/iconv_close.c: New. + * POSIX/Makefile.am: Add iconv, iconv_open, iconv_close. + 2011-07-12 Joel Sherrill <joel.sherrill@oarcorp.com> * malloc04/init.c, malloc04/malloc04.scn: Remove test cases which are diff --git a/testsuites/libtests/POSIX/Makefile.am b/testsuites/libtests/POSIX/Makefile.am index 5399f45988..1f806513cf 100644 --- a/testsuites/libtests/POSIX/Makefile.am +++ b/testsuites/libtests/POSIX/Makefile.am @@ -61,6 +61,15 @@ getuid_SOURCES = getuid.c check_PROGRAMS += htonl htonl_SOURCES = htonl.c +check_PROGRAMS += iconv +iconv_SOURCES = iconv.c + +check_PROGRAMS += iconv_close +iconv_close_SOURCES = iconv_close.c + +check_PROGRAMS += iconv_open +iconv_open_SOURCES = iconv_open.c + check_PROGRAMS += lseek lseek_SOURCES = lseek.c diff --git a/testsuites/libtests/POSIX/iconv.c b/testsuites/libtests/POSIX/iconv.c new file mode 100644 index 0000000000..7dc25eca83 --- /dev/null +++ b/testsuites/libtests/POSIX/iconv.c @@ -0,0 +1,30 @@ +/* + * Copyright (c) 2011 by + * Ralf Corsépius, Ulm, Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <iconv.h> + +int +main (void) +{ + iconv_t cd = NULL; + char inbuf[42]; + size_t isize; + char outbuf[42]; + size_t osize; + size_t ret; + + char *i = inbuf; + char *o = outbuf; + ret = iconv(cd, &i, &isize, &o, &osize); + + return 0; +} diff --git a/testsuites/libtests/POSIX/iconv_close.c b/testsuites/libtests/POSIX/iconv_close.c new file mode 100644 index 0000000000..3a15788c7d --- /dev/null +++ b/testsuites/libtests/POSIX/iconv_close.c @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2011 by + * Ralf Corsépius, Ulm, Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <iconv.h> + +int +main (void) +{ + iconv_t cd = NULL; + int ret; + + ret = iconv_close(cd); + + return 0; +} diff --git a/testsuites/libtests/POSIX/iconv_open.c b/testsuites/libtests/POSIX/iconv_open.c new file mode 100644 index 0000000000..7fe11de9ea --- /dev/null +++ b/testsuites/libtests/POSIX/iconv_open.c @@ -0,0 +1,23 @@ +/* + * Copyright (c) 2011 by + * Ralf Corsépius, Ulm, Germany. All rights reserved. + * + * Permission to use, copy, modify, and distribute this software + * is freely granted, provided that this notice is preserved. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <iconv.h> + +int +main (void) +{ + iconv_t ret; + + ret = iconv_open("utf8", "ascii" ); + + return 0; +} |