This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMITTED PATCH] Convert tst-iconv3 to use test-skeleton.


Tested x86_64-linux-gnu.


Thanks,
Roland


	* iconv/tst-iconv3.c (main): Converted to ...
	(do_test): ... this.
	(TEST_FUNCTION): New macro.
	Include test-skeleton.c.

--- a/iconv/tst-iconv3.c
+++ b/iconv/tst-iconv3.c
@@ -7,8 +7,8 @@
 
 #define BUFSIZE 10000
 
-int
-main (int argc, char *argv[])
+static int
+do_test (void)
 {
   char inbuf[BUFSIZE];
   wchar_t outbuf[BUFSIZE];
@@ -51,3 +51,6 @@ main (int argc, char *argv[])
 
   return result;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]