2004-08-07 01:01:29 +04:00
|
|
|
/*
|
2004-11-22 04:38:40 +03:00
|
|
|
* Copyright (c) 2004-2005 The Trustees of Indiana University.
|
|
|
|
* All rights reserved.
|
|
|
|
* Copyright (c) 2004-2005 The Trustees of the University of Tennessee.
|
|
|
|
* All rights reserved.
|
2004-11-28 23:09:25 +03:00
|
|
|
* Copyright (c) 2004-2005 High Performance Computing Center Stuttgart,
|
|
|
|
* University of Stuttgart. All rights reserved.
|
2005-03-24 15:43:37 +03:00
|
|
|
* Copyright (c) 2004-2005 The Regents of the University of California.
|
|
|
|
* All rights reserved.
|
2004-11-22 04:38:40 +03:00
|
|
|
* $COPYRIGHT$
|
|
|
|
*
|
|
|
|
* Additional copyrights may follow
|
|
|
|
*
|
2004-08-07 01:01:29 +04:00
|
|
|
* $HEADER$
|
|
|
|
*/
|
|
|
|
|
2005-03-29 23:58:32 +04:00
|
|
|
#include "orte_config.h"
|
2005-08-21 23:21:09 +04:00
|
|
|
|
2004-08-07 01:01:29 +04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <string.h>
|
|
|
|
#include <stdlib.h>
|
2004-10-20 05:03:09 +04:00
|
|
|
#ifdef HAVE_UNISTD_H
|
2004-08-07 01:01:29 +04:00
|
|
|
#include <unistd.h>
|
2004-10-20 05:03:09 +04:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_LIBGEN_H
|
2004-08-07 01:01:29 +04:00
|
|
|
#include <libgen.h>
|
2004-10-20 05:03:09 +04:00
|
|
|
#endif
|
|
|
|
#ifdef HAVE_SYS_PARAM_H
|
2004-08-07 01:01:29 +04:00
|
|
|
#include <sys/param.h>
|
2004-10-20 05:03:09 +04:00
|
|
|
#endif
|
2004-08-07 01:01:29 +04:00
|
|
|
#include <sys/stat.h>
|
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
#include "support.h"
|
|
|
|
#include "orte/include/orte_constants.h"
|
|
|
|
#include "orte/mca/ns/ns_types.h"
|
|
|
|
#include "orte/util/proc_info.h"
|
2005-08-27 01:03:41 +04:00
|
|
|
#include "orte/util/sys_info.h"
|
2005-07-04 05:59:52 +04:00
|
|
|
#include "opal/util/os_path.h"
|
|
|
|
#include "opal/util/os_create_dirpath.h"
|
2005-08-21 23:21:09 +04:00
|
|
|
#include "orte/util/session_dir.h"
|
|
|
|
#include "orte/util/proc_info.h"
|
|
|
|
#include "orte/runtime/runtime.h"
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2004-08-08 06:20:33 +04:00
|
|
|
|
2004-08-07 01:01:29 +04:00
|
|
|
static bool test1(void); /* given prefix, both one that works and one that fails */
|
2005-08-21 23:21:09 +04:00
|
|
|
static bool test2(void); /* no prefix given, ORTE_PREFIX_ENV set, one good and one bad */
|
2004-08-07 01:01:29 +04:00
|
|
|
static bool test3(void); /* no prefix given, TMPDIR set, one good and one bad */
|
|
|
|
static bool test4(void); /* no prefix given, TMP set, one good and one bad */
|
|
|
|
static bool test5(void); /* no prefix given, HOME set, one good and one bad */
|
|
|
|
static bool test6(void); /* no prefix given, nothing set, one good and one bad */
|
2004-08-29 06:46:31 +04:00
|
|
|
static bool test7(void); /* remove session directory tree */
|
2004-08-29 20:37:02 +04:00
|
|
|
static bool test8(void); /* attempt to remove tree when subdirs present */
|
|
|
|
|
|
|
|
void clear_proc_info(void);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
static FILE *test_out=NULL;
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
|
{
|
2005-03-29 23:58:32 +04:00
|
|
|
orte_sys_info(); /* initialize system */
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_proc_info(); /* initialize proc info structure */
|
|
|
|
orte_process_info.my_name = (orte_process_name_t*)malloc(sizeof(orte_process_name_t));
|
|
|
|
orte_process_info.my_name->cellid = 0;
|
|
|
|
orte_process_info.my_name->jobid = 0;
|
|
|
|
orte_process_info.my_name->vpid = 0;
|
2005-04-07 23:19:48 +04:00
|
|
|
|
2005-03-29 23:58:32 +04:00
|
|
|
test_init("orte_session_dir_t");
|
2004-08-29 20:37:02 +04:00
|
|
|
test_out = fopen( "test_session_dir_out", "w+" );
|
2004-08-29 06:46:31 +04:00
|
|
|
if( test_out == NULL ) {
|
|
|
|
test_failure("test_session_dir couldn't open test file failed");
|
|
|
|
test_finalize();
|
|
|
|
exit(1);
|
2004-08-29 20:37:02 +04:00
|
|
|
}
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
|
|
|
|
fprintf(test_out, "running test1\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
if (test1()) {
|
2004-08-10 01:44:07 +04:00
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test1 failed");
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fprintf(test_out, "running test2\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
if (test2()) {
|
2004-08-10 01:44:07 +04:00
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test2 failed");
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fprintf(test_out, "running test3\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
if (test3()) {
|
2004-08-10 01:44:07 +04:00
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test3 failed");
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fprintf(test_out, "running test4\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
if (test4()) {
|
2004-08-10 01:44:07 +04:00
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test4 failed");
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fprintf(test_out, "running test5\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
if (test5()) {
|
2004-08-10 01:44:07 +04:00
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test5 failed");
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fprintf(test_out, "running test6\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
if (test6()) {
|
2004-08-10 01:44:07 +04:00
|
|
|
test_success();
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
2004-08-10 01:44:07 +04:00
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test6 failed");
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fprintf(test_out, "running test7\n");
|
|
|
|
if (test7()) {
|
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test7 failed");
|
2004-08-29 20:37:02 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
fprintf(test_out, "running test8\n");
|
|
|
|
if (test8()) {
|
|
|
|
test_success();
|
|
|
|
}
|
|
|
|
else {
|
2005-03-29 23:58:32 +04:00
|
|
|
test_failure("orte_session_dir_t test8 failed");
|
2004-08-29 06:46:31 +04:00
|
|
|
}
|
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
fprintf(test_out, "completed all tests\n");
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
fclose(test_out);
|
2005-04-14 05:04:26 +04:00
|
|
|
|
|
|
|
/* clean up */
|
|
|
|
orte_sys_info_finalize();
|
|
|
|
orte_proc_info_finalize();
|
|
|
|
|
2004-08-10 01:44:07 +04:00
|
|
|
test_finalize();
|
|
|
|
return 0;
|
2004-08-07 01:01:29 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool test1(void)
|
|
|
|
{
|
|
|
|
/* Test proper action when given a prefix */
|
|
|
|
|
2005-04-07 23:19:48 +04:00
|
|
|
char *prefix;
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
/* see if we can create a specified path */
|
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
prefix = opal_os_path(false, "tmp", NULL);
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, prefix, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2004-08-29 20:37:02 +04:00
|
|
|
fprintf(test_out, "test1 - couldn't create specified path\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
free(prefix);
|
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
/* see if it can access an existing path */
|
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(false, prefix, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2004-08-29 20:37:02 +04:00
|
|
|
fprintf(test_out, "test1 - couldn't access existing path\n");
|
2004-08-07 01:01:29 +04:00
|
|
|
free(prefix);
|
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2005-03-29 23:58:32 +04:00
|
|
|
free(orte_process_info.universe_session_dir);
|
2004-08-07 01:01:29 +04:00
|
|
|
free(prefix);
|
|
|
|
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool test2(void)
|
|
|
|
{
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
/* use the ORTE_PREFIX_ENV variable */
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
setenv("OMPI_PREFIX_ENV", "/tmp/trythis", 1);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("OMPI_PREFIX_ENV");
|
2004-08-07 01:01:29 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("OMPI_PREFIX_ENV");
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
return(true);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool test3(void)
|
|
|
|
{
|
|
|
|
/* use the TMPDIR enviro variable */
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
setenv("TMPDIR", "/tmp/trythis", 1);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("TMPDIR");
|
2004-08-07 01:01:29 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("TMPDIR");
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
return(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool test4(void)
|
|
|
|
{
|
|
|
|
/* use the TMP enviro variable */
|
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
setenv("TMP", "/tmp/trythis", 1);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("TMP");
|
2004-08-07 01:01:29 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("TMP");
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
return(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool test5(void)
|
|
|
|
{
|
|
|
|
/* use the HOME enviro variable */
|
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
setenv("HOME", "/tmp/trythis", 1);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("HOME");
|
2004-08-07 01:01:29 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
2005-04-05 02:55:26 +04:00
|
|
|
unsetenv("HOME");
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
return(true);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static bool test6(void)
|
|
|
|
{
|
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2004-08-07 01:01:29 +04:00
|
|
|
/* no enviro variables set, no prefix given
|
|
|
|
* Program should turn to default of /tmp (where "/" is whatever
|
|
|
|
* top-level directory is appropriate for given system)
|
|
|
|
*/
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, NULL, NULL, "test-universe", NULL, NULL)) {
|
2004-08-07 01:01:29 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2004-08-07 01:01:29 +04:00
|
|
|
|
|
|
|
return(true);
|
|
|
|
}
|
2004-08-29 06:46:31 +04:00
|
|
|
|
|
|
|
static bool test7(void)
|
|
|
|
{
|
2005-04-07 23:19:48 +04:00
|
|
|
char *filenm[5];
|
2004-08-29 10:50:00 +04:00
|
|
|
FILE *fp;
|
2005-04-07 23:19:48 +04:00
|
|
|
int i;
|
2004-08-29 06:46:31 +04:00
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
clear_proc_info();
|
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
/* create test proc session directory tree */
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, "localhost", NULL, "test-universe", "test-job", "test-proc")) {
|
2004-08-29 06:46:31 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
fprintf(test_out, "removing directories: %s\n\t%s\n\t%s\n",
|
2005-03-29 23:58:32 +04:00
|
|
|
orte_process_info.proc_session_dir,
|
|
|
|
orte_process_info.job_session_dir,
|
|
|
|
orte_process_info.universe_session_dir);
|
2004-08-29 06:46:31 +04:00
|
|
|
|
2004-08-29 10:50:00 +04:00
|
|
|
/* create some files */
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
filenm[0] = opal_os_path(false, orte_process_info.proc_session_dir, "dum1", NULL);
|
2005-04-07 23:19:48 +04:00
|
|
|
fp = fopen(filenm[0], "w");
|
2004-08-29 10:50:00 +04:00
|
|
|
fprintf(fp, "ss");
|
|
|
|
fclose(fp);
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
filenm[1] = opal_os_path(false, orte_process_info.job_session_dir, "dum2", NULL);
|
2005-04-07 23:19:48 +04:00
|
|
|
fp = fopen(filenm[1], "w");
|
2004-08-29 10:50:00 +04:00
|
|
|
fprintf(fp, "ss");
|
|
|
|
fclose(fp);
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
filenm[2] = opal_os_path(false, orte_process_info.universe_session_dir, "dum3", NULL);
|
2005-04-07 23:19:48 +04:00
|
|
|
fp = fopen(filenm[2], "w");
|
2004-08-29 10:50:00 +04:00
|
|
|
fprintf(fp, "ss");
|
|
|
|
fclose(fp);
|
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir_finalize(orte_process_info.my_name)) {
|
2004-08-29 06:46:31 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
2005-04-07 23:19:48 +04:00
|
|
|
for (i=0; i < 3; i++) unlink(filenm[i]);
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2005-04-07 23:19:48 +04:00
|
|
|
|
2004-08-29 06:46:31 +04:00
|
|
|
return true;
|
|
|
|
}
|
2004-08-29 20:37:02 +04:00
|
|
|
|
|
|
|
static bool test8(void)
|
|
|
|
{
|
2005-04-07 23:19:48 +04:00
|
|
|
char *filenm[5];
|
2004-08-29 20:37:02 +04:00
|
|
|
FILE *fp;
|
2005-04-07 23:19:48 +04:00
|
|
|
int i;
|
2004-08-29 20:37:02 +04:00
|
|
|
|
|
|
|
clear_proc_info();
|
|
|
|
|
|
|
|
/* create test proc session directory tree */
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir(true, NULL, orte_system_info.user, "localhost", NULL, "test-universe2", "test-job2", "test-proc2")) {
|
2004-08-29 20:37:02 +04:00
|
|
|
return(false);
|
|
|
|
}
|
|
|
|
|
|
|
|
fprintf(test_out, "removing directories: %s\n\t%s\n\t%s\n",
|
2005-03-29 23:58:32 +04:00
|
|
|
orte_process_info.proc_session_dir,
|
|
|
|
orte_process_info.job_session_dir,
|
|
|
|
orte_process_info.universe_session_dir);
|
2004-08-29 20:37:02 +04:00
|
|
|
|
|
|
|
/* create some files */
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
filenm[0] = opal_os_path(false, orte_process_info.proc_session_dir, "dum1", NULL);
|
2005-04-07 23:19:48 +04:00
|
|
|
fp = fopen(filenm[0], "w");
|
2004-08-29 20:37:02 +04:00
|
|
|
fprintf(fp, "ss");
|
|
|
|
fclose(fp);
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
filenm[1] = opal_os_path(false, orte_process_info.job_session_dir, "dum2", NULL);
|
2005-04-07 23:19:48 +04:00
|
|
|
fp = fopen(filenm[1], "w");
|
2004-08-29 20:37:02 +04:00
|
|
|
fprintf(fp, "ss");
|
|
|
|
fclose(fp);
|
|
|
|
|
2005-07-04 05:59:52 +04:00
|
|
|
filenm[2] = opal_os_path(false, orte_process_info.universe_session_dir, "dum3", NULL);
|
2005-04-07 23:19:48 +04:00
|
|
|
fp = fopen(filenm[2], "w");
|
2004-08-29 20:37:02 +04:00
|
|
|
fprintf(fp, "ss");
|
|
|
|
fclose(fp);
|
|
|
|
|
|
|
|
|
2005-08-21 23:21:09 +04:00
|
|
|
if (ORTE_ERROR == orte_session_dir_finalize(orte_process_info.my_name)) {
|
2005-04-07 23:19:48 +04:00
|
|
|
return(false);
|
2004-08-29 20:37:02 +04:00
|
|
|
}
|
|
|
|
|
2005-04-07 23:19:48 +04:00
|
|
|
for (i=0; i < 3; i++) unlink(filenm[i]);
|
2005-04-14 05:04:26 +04:00
|
|
|
orte_session_dir_finalize(orte_process_info.my_name);
|
2005-04-07 23:19:48 +04:00
|
|
|
|
2004-08-29 20:37:02 +04:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
void clear_proc_info(void)
|
|
|
|
{
|
2005-03-29 23:58:32 +04:00
|
|
|
orte_process_info.tmpdir_base = NULL;
|
|
|
|
orte_process_info.top_session_dir = NULL;
|
|
|
|
orte_process_info.universe_session_dir = NULL;
|
|
|
|
orte_process_info.job_session_dir = NULL;
|
|
|
|
orte_process_info.proc_session_dir = NULL;
|
2004-08-29 20:37:02 +04:00
|
|
|
|
|
|
|
}
|