Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add mpich3 test suite, to replace older one.
[simgrid.git] / teshsuite / smpi / mpich3-test / init / exitst1.c
diff --git a/teshsuite/smpi/mpich3-test/init/exitst1.c b/teshsuite/smpi/mpich3-test/init/exitst1.c
new file mode 100644 (file)
index 0000000..3ea4e46
--- /dev/null
@@ -0,0 +1,17 @@
+/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil ; -*- */
+/*
+ *  (C) 2001 by Argonne National Laboratory.
+ *      See COPYRIGHT in top-level directory.
+ */
+#include "mpi.h"
+
+/* 
+ * This is a special test to check that mpiexec handles zero/non-zero 
+ * return status from an application
+ */
+int main( int argc, char *argv[] )
+{
+    MPI_Init( 0, 0 );
+    MPI_Finalize( );
+    return 1;
+}