1
1
openmpi/orte/test/system/orte_errors.c
Ralph Castain 590ac70e88 Add a simple test program for error string output
This commit was SVN r25007.
2011-08-07 21:32:25 +00:00

31 строка
541 B
C

/* -*- C -*-
*
* $HEADER$
*
* Check error messages
*/
#include <stdio.h>
#include <unistd.h>
#include "orte/runtime/runtime.h"
#include "orte/mca/errmgr/errmgr.h"
int main(int argc, char* argv[])
{
int rc, i;
if (0 > (rc = orte_init(&argc, &argv, ORTE_PROC_NON_MPI))) {
fprintf(stderr, "orte_abort: couldn't init orte - error code %d\n", rc);
return rc;
}
for (i=0; ORTE_ERR_MAX < i; i--) {
fprintf(stderr, "%d: %s\n", -1*i, ORTE_ERROR_NAME(i));
}
orte_finalize();
return 0;
}