myserver-commit
[Top][All Lists]
Advanced

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

[myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-523


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. v0.9.2-523-gc20bcdc
Date: Sat, 14 Apr 2012 14:00:38 +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 MyServer".

The branch, master has been updated
       via  c20bcdc07a46b0585dce426578f4ee40a88c88d0 (commit)
      from  dcf7f984458ccf7551ecd2271379832a48614b37 (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 c20bcdc07a46b0585dce426578f4ee40a88c88d0
Author: Giuseppe Scrivano <address@hidden>
Date:   Sat Apr 14 16:00:17 2012 +0200

    test_fork_server: check for return code immediately

diff --git a/myserver/tests/test_fork_server.cpp 
b/myserver/tests/test_fork_server.cpp
index f4b19ca..3ef130e 100644
--- a/myserver/tests/test_fork_server.cpp
+++ b/myserver/tests/test_fork_server.cpp
@@ -1,6 +1,6 @@
 /*
   MyServer
-  Copyright (C) 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
+  Copyright (C) 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc.
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 3 of the License, or
@@ -89,6 +89,8 @@ public:
         spi.stdError = -1;
         spi.stdOut =  pipe.getWriteHandle ();
 
+        CPPUNIT_ASSERT_EQUAL (ret, 0);
+
         if (!FilesUtility::nodeExists ("/bin/echo"))
           return;
 
@@ -100,8 +102,6 @@ public:
         ret = fs->executeProcess (&spi, ForkServer::FLAG_USE_OUT, &pid, &port);
         pipe.closeWrite ();
 
-        CPPUNIT_ASSERT_EQUAL (ret, 0);
-
         ret = pipe.read (buffer, 32, &nbr);
 
         CPPUNIT_ASSERT_EQUAL (ret, 0);

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

Summary of changes:
 myserver/tests/test_fork_server.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU MyServer



reply via email to

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