gnutls-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_4-1-g6f1cac


From: Nikos Mavrogiannopoulos
Subject: [SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_4-1-g6f1cacf
Date: Fri, 06 May 2011 23:13:42 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".

http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=6f1cacf1e64dfd917b23be56e7ee3444dcd3c0c3

The branch, gnutls_2_12_x has been updated
       via  6f1cacf1e64dfd917b23be56e7ee3444dcd3c0c3 (commit)
      from  c0da7fa6a4486d31e86492567713d13eda51a2c0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6f1cacf1e64dfd917b23be56e7ee3444dcd3c0c3
Author: Nikos Mavrogiannopoulos <address@hidden>
Date:   Sat May 7 01:12:51 2011 +0200

    Do not use /tmp for temporary file. Just use the local (test) directory.

-----------------------------------------------------------------------

Summary of changes:
 tests/rng-fork.c |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/rng-fork.c b/tests/rng-fork.c
index c7fc189..4bb396b 100644
--- a/tests/rng-fork.c
+++ b/tests/rng-fork.c
@@ -46,8 +46,8 @@ int i;
   printf("\n");
 }
   
-    
-
+#define FILENAME "./rng-test"
+   
 void
 doit (void)
 {
@@ -57,13 +57,11 @@ doit (void)
   int ret;
   FILE* fp;
 
-
   gnutls_global_init ();
-  
   pid = fork();
   if (pid == 0)
     {
-      fp = fopen("/tmp/rng-test", "w");
+      fp = fopen(FILENAME, "w");
       if (fp == NULL)
         fail("cannot open file");
       
@@ -80,12 +78,15 @@ doit (void)
       if (debug) dump("buf2", buf2, sizeof(buf2));
       waitpid(pid, NULL, 0);
       
-      fp = fopen("/tmp/rng-test", "r");
+      fp = fopen(FILENAME, "r");
       if (fp == NULL)
         fail("cannot open file");
         
       ret = fread(buf1, 1, sizeof(buf1), fp);
       
+      fclose(fp);
+      remove(FILENAME);
+      
       if (ret != sizeof(buf1))
         {
           fail("error testing the random generator.");


hooks/post-receive
-- 
GNU gnutls



reply via email to

[Prev in Thread] Current Thread [Next in Thread]