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 55b86f37201cd9aa9e3dcbf2141504552634ba8d (commit) from fab816f0cdfdf82e44aaddc3737e1f38562bc858 (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/55b86f37201cd9aa9e3dcbf21415045526... commit 55b86f37201cd9aa9e3dcbf2141504552634ba8d Author: Ken Raffenetti <[email protected]> Date: Fri Jul 26 13:54:49 2013 -0500 Amended write_ckpoint test. Added checking to see if ckpoint context files exist and are non-empty. diff --git a/test/mpi/ckpoint/write_ckpoint.c b/test/mpi/ckpoint/write_ckpoint.c index eadd43c..1ddd46d 100644 --- a/test/mpi/ckpoint/write_ckpoint.c +++ b/test/mpi/ckpoint/write_ckpoint.c @@ -6,12 +6,16 @@ #include "mpi.h" #include <stdio.h> +#include <unistd.h> +#include <sys/stat.h> +#include <sys/types.h> int main(int argc,char *argv[]) { int numprocs, myid, i; int namelen; char processor_name[MPI_MAX_PROCESSOR_NAME]; + struct stat fileStat; MPI_Init(&argc,&argv); MPI_Comm_size(MPI_COMM_WORLD,&numprocs); @@ -24,7 +28,13 @@ int main(int argc,char *argv[]) } if (myid == 0) { - printf("No Errors\n"); + if (stat("/tmp/context-num2-0-0",&fileStat) < 0) { + printf("failed to find ckpoint file\n"); + } else if (fileStat.st_size == 0) { + printf("ckpoint file is empty\n"); + } else { + printf("No Errors\n"); + } } MPI_Finalize(); ----------------------------------------------------------------------- Summary of changes: test/mpi/ckpoint/write_ckpoint.c | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) hooks/post-receive -- MPICH primary repository