Update unit test
This commit was SVN r1616.
Этот коммит содержится в:
родитель
dd38683d93
Коммит
edd09958e8
@ -17,6 +17,7 @@ test_ns_replica_LDADD = \
|
||||
$(top_builddir)/src/util/argv.lo \
|
||||
$(top_builddir)/src/util/strncpy.lo \
|
||||
$(top_builddir)/src/mca/ns/base/libmca_ns_base.la \
|
||||
$(top_builddir)/src/mca/ns/replica/src/libmca_ns_replica.la \
|
||||
$(top_builddir)/src/libmpi.la \
|
||||
$(top_builddir)/src/threads/mutex.lo \
|
||||
$(top_builddir)/src/threads/mutex_pthread.lo \
|
||||
|
@ -15,6 +15,8 @@
|
||||
#include "ompi_config.h"
|
||||
|
||||
#include "include/constants.h"
|
||||
#include "util/sys_info.h"
|
||||
#include "util/proc_info.h"
|
||||
#include "mca/mca.h"
|
||||
#include "mca/base/base.h"
|
||||
#include "mca/ns/base/base.h"
|
||||
@ -23,6 +25,13 @@ int main(int argc, char **argv)
|
||||
{
|
||||
ompi_process_name_t *test_name;
|
||||
|
||||
/* get system info */
|
||||
ompi_sys_info();
|
||||
ompi_proc_info();
|
||||
|
||||
/* set us to be seed */
|
||||
ompi_process_info.seed = true;
|
||||
|
||||
/* startup the MCA */
|
||||
if (OMPI_SUCCESS == mca_base_open()) {
|
||||
fprintf(stderr, "MCA started\n");
|
||||
@ -40,7 +49,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* startup the name server */
|
||||
if (NULL == mca_ns_replica_init()) {
|
||||
if (OMPI_SUCCESS != mca_ns_base_select(false, false)) {
|
||||
fprintf(stderr, "NS could not start\n");
|
||||
exit(1);
|
||||
} else {
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user