Modify libio/tst-fopenloc.c to use test-skeleton.c
authorArjun Shankar <arjun.is@lostca.se>
Tue, 16 Dec 2014 09:51:01 +0000 (15:21 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Tue, 16 Dec 2014 11:25:23 +0000 (16:55 +0530)
This test would earlier fail when run under test-skeleton.c due to
bug #17522 in 'fputws'. That bug is now fixed and so this test may
be modified.

ChangeLog
libio/tst-fopenloc.c

index ce2d639..9bee819 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2014-12-16  Arjun Shankar  <arjun.is@lostca.se>
 
+       * libio/tst-fopenloc.c: Use test-skeleton.c.
+
        * stdlib/tst-bsearch.c: Use test-skeleton.c.
        (entry): Rename to ITEM.
        (do_test, comp): Adjust.
index 8fe83fd..140d976 100644 (file)
@@ -29,8 +29,8 @@
 static const char inputfile[] = "../iconvdata/testdata/ISO-8859-1";
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   FILE *fp;
 
@@ -59,3 +59,6 @@ main (void)
 
   return 0;
 }
+
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"