[1/3] Modify stdio-common/tst-fseek.c to use test-skeleton.c
diff mbox

Message ID 20141215222338.GB68022@arati.lostca.se
State New
Headers show

Commit Message

Arjun Shankar Dec. 15, 2014, 10:23 p.m. UTC
This test needs a TIMEOUT longer than the default 2 seconds since it
sleeps twice for a second each.

ChangeLog:

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

	* stdio-common/tst-fseek.c: Use test-skeleton.c.
---
 stdio-common/tst-fseek.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

Comments

Siddhesh Poyarekar Dec. 16, 2014, 9:26 a.m. UTC | #1
On Mon, Dec 15, 2014 at 10:23:39PM +0000, Arjun Shankar wrote:
> 
> This test needs a TIMEOUT longer than the default 2 seconds since it
> sleeps twice for a second each.
> 
> ChangeLog:
> 
> 2014-12-15  Arjun Shankar  <arjun.is@lostca.se>
> 
> 	* stdio-common/tst-fseek.c: Use test-skeleton.c.
> ---
>  stdio-common/tst-fseek.c | 8 ++++++--
>  1 file changed, 6 insertions(+), 2 deletions(-)
> 

Looks OK.  I'll commit it.

Siddhesh

> diff --git a/stdio-common/tst-fseek.c b/stdio-common/tst-fseek.c
> index 1ab4702..5b9c751 100644
> --- a/stdio-common/tst-fseek.c
> +++ b/stdio-common/tst-fseek.c
> @@ -27,8 +27,8 @@
>  #include <sys/stat.h>
>  
>  
> -int
> -main (void)
> +static int
> +do_test (void)
>  {
>    const char *tmpdir;
>    char *fname;
> @@ -476,3 +476,7 @@ main (void)
>  
>    return result;
>  }
> +
> +#define TIMEOUT 3
> +#define TEST_FUNCTION do_test ()
> +#include "../test-skeleton.c"

Patch
diff mbox

diff --git a/stdio-common/tst-fseek.c b/stdio-common/tst-fseek.c
index 1ab4702..5b9c751 100644
--- a/stdio-common/tst-fseek.c
+++ b/stdio-common/tst-fseek.c
@@ -27,8 +27,8 @@ 
 #include <sys/stat.h>
 
 
-int
-main (void)
+static int
+do_test (void)
 {
   const char *tmpdir;
   char *fname;
@@ -476,3 +476,7 @@  main (void)
 
   return result;
 }
+
+#define TIMEOUT 3
+#define TEST_FUNCTION do_test ()
+#include "../test-skeleton.c"