summaryrefslogtreecommitdiffstats
path: root/test/testframe.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-01-09 05:14:54 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-01-09 05:14:54 (GMT)
commit6cda54bdec4071715935b8195a259237285813b0 (patch)
tree291f706205a76daf5aa806da8f6d5d4435d225ae /test/testframe.c
parentc8f5be4e3cc18ac9883dcd2a4ed3591ca978461c (diff)
downloadhdf5-6cda54bdec4071715935b8195a259237285813b0.zip
hdf5-6cda54bdec4071715935b8195a259237285813b0.tar.gz
hdf5-6cda54bdec4071715935b8195a259237285813b0.tar.bz2
[svn-r11871] Purpose:
Bug fix. Description: getenv_all will be called even when it is NOT an MPI application. Solution: Moved the use of getenv_all("HDF5_NOCLEANUP") to fix_name so that it will be invoked only if a parallel driver is used. Platforms tested: hand tested in copper.
Diffstat (limited to 'test/testframe.c')
-rw-r--r--test/testframe.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/test/testframe.c b/test/testframe.c
index 4478cb4..f4c19c2 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -266,7 +266,7 @@ void TestParseCmdLine(int argc, char *argv[])
exit(0);
}
else if ((HDstrcmp(*argv, "-cleanoff") == 0) || (HDstrcmp(*argv, "-c") == 0))
- CleanUp = 0;
+ SetTestNoCleanup();
else {
/* non-standard option. Break out. */
break;
@@ -394,6 +394,19 @@ int GetTestCleanup(void)
}
/*
+ * Set cleanup to no.
+ * Return previous cleanup value.
+ */
+int SetTestNoCleanup(void)
+{
+ int oldval;
+
+ oldval = CleanUp;
+ CleanUp = 0;
+ return(oldval);
+}
+
+/*
* Parse an argument string for verbosity level and set it.
*/
void ParseTestVerbosity(char *argv)