diff options
author | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-10 19:08:49 +0000 |
---|---|---|
committer | John Mark Bell <jmb@netsurf-browser.org> | 2008-11-10 19:08:49 +0000 |
commit | b5aa13a47b66955a5198da1f88e1f93f09306a84 (patch) | |
tree | e5bcd583e0fbf9c24a4ba8ebfdf5077e1aba590d /test/iconv.c | |
parent | fde2ab38d0a3f6f6f1aeb91ad3602d63180bdec9 (diff) | |
download | iconv-b5aa13a47b66955a5198da1f88e1f93f09306a84.tar.gz iconv-b5aa13a47b66955a5198da1f88e1f93f09306a84.tar.bz2 |
Test driver for library initialisation/finalisation
svn path=/trunk/iconv/; revision=5679
Diffstat (limited to 'test/iconv.c')
-rw-r--r-- | test/iconv.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/iconv.c b/test/iconv.c new file mode 100644 index 0000000..fd1eff7 --- /dev/null +++ b/test/iconv.c @@ -0,0 +1,22 @@ +#include <stdio.h> + +#include <iconv/iconv.h> + +#include "testutils.h" + +int main(int argc, char **argv) +{ + if (argc != 2) { + printf("Usage: %s <aliases_file>\n", argv[0]); + return 1; + } + + assert(iconv_initialise(argv[1]) == 1); + + iconv_finalise(); + + printf("PASS\n"); + + return 0; +} + |