diff mbox

[3/3] Modify libio/tst-fopenloc.c to use test-skeleton.c

Message ID 20141215222533.GD68022@arati.lostca.se
State New
Headers show

Commit Message

Arjun Shankar Dec. 15, 2014, 10:25 p.m. UTC
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:

2014-12-15  Arjun Shankar  <arjun.is@lostca.se>

	* libio/tst-fopenloc.c: Use test-skeleton.c.
---
 libio/tst-fopenloc.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

Comments

Siddhesh Poyarekar Dec. 16, 2014, 9:30 a.m. UTC | #1
On Mon, Dec 15, 2014 at 10:25:33PM +0000, Arjun Shankar wrote:
> 
> 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:
> 
> 2014-12-15  Arjun Shankar  <arjun.is@lostca.se>
> 
> 	* libio/tst-fopenloc.c: Use test-skeleton.c.

Looks OK, thanks.

Siddhesh

> ---
>  libio/tst-fopenloc.c | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)
> 

> diff --git a/libio/tst-fopenloc.c b/libio/tst-fopenloc.c
> index 8fe83fd..140d976 100644
> --- a/libio/tst-fopenloc.c
> +++ b/libio/tst-fopenloc.c
> @@ -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"
diff mbox

Patch

diff --git a/libio/tst-fopenloc.c b/libio/tst-fopenloc.c
index 8fe83fd..140d976 100644
--- a/libio/tst-fopenloc.c
+++ b/libio/tst-fopenloc.c
@@ -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"