[mpich-commits] [mpich] MPICH primary repository branch, master, updated. v3.1b1-18-gd65de57

mysql vizuser noreply at mpich.org
Mon Aug 19 14:32:45 CDT 2013


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 "MPICH primary repository".

The branch, master has been updated
       via  d65de57eb1651daee8c04fecade6876c26e5804f (commit)
      from  b72af961854c09d15304199627866a659813463d (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 -----------------------------------------------------------------
http://git.mpich.org/mpich.git/commitdiff/d65de57eb1651daee8c04fecade6876c26e5804f

commit d65de57eb1651daee8c04fecade6876c26e5804f
Author: Ken Raffenetti <raffenet at mcs.anl.gov>
Date:   Sun Aug 18 17:32:08 2013 -0500

    Fault Tolerance test fixes.
    
    Use _exit instead of kill to more reliably fail processes in
    fault tolerance tests. _exit ends a process immediately rather than
    relying on kill/sleep combo. Also, tests now output " No Errors"
    correctly upon success.
    
    Signed-off-by: Wesley Bland <wbland at mcs.anl.gov>

diff --git a/test/mpi/ft/abort.c b/test/mpi/ft/abort.c
index de299a8..d9a6ad6 100644
--- a/test/mpi/ft/abort.c
+++ b/test/mpi/ft/abort.c
@@ -14,7 +14,7 @@ int main(int argc, char **argv)
     MPI_Init(&argc, &argv);
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
 
-    printf("No Errors\n");
+    printf(" No Errors\n");
     fflush( stdout );
 
     if (rank == 0)
diff --git a/test/mpi/ft/die.c b/test/mpi/ft/die.c
index c9d658d..9ff34c4 100644
--- a/test/mpi/ft/die.c
+++ b/test/mpi/ft/die.c
@@ -19,14 +19,11 @@ int main(int argc, char **argv)
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
 
     if (rank == 1) {
-        pid = getpid();
-        kill(pid, SIGKILL);
+        _exit(0);
     }
 
-    MTestSleep(1);
-
     if (rank == 0) {
-        printf("No Errors\n");
+        printf(" No Errors\n");
         fflush( stdout );
     }
 
diff --git a/test/mpi/ft/send.c b/test/mpi/ft/send.c
index 8a5b5c3..0ff64aa 100644
--- a/test/mpi/ft/send.c
+++ b/test/mpi/ft/send.c
@@ -24,19 +24,16 @@ int main(int argc, char **argv)
     MPI_Comm_rank(MPI_COMM_WORLD, &rank);
 
     if (rank == 1) {
-        pid = getpid();
-        kill(pid, SIGKILL);
+        _exit(0);
     }
 
-    MTestSleep(1);
-
     if (rank == 0) {
         err = MPI_Send("No Errors", 10, MPI_CHAR, 2, 0, MPI_COMM_WORLD);
     }
 
     if (rank == 2) {
         MPI_Recv(buf, 10, MPI_CHAR, 0, 0, MPI_COMM_WORLD, MPI_STATUS_IGNORE);
-        printf("%s\n", buf);
+        printf(" %s\n", buf);
         fflush( stdout );
     }
 

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

Summary of changes:
 test/mpi/ft/abort.c |    2 +-
 test/mpi/ft/die.c   |    7 ++-----
 test/mpi/ft/send.c  |    7 ++-----
 3 files changed, 5 insertions(+), 11 deletions(-)


hooks/post-receive
-- 
MPICH primary repository


More information about the commits mailing list