summaryrefslogtreecommitdiffstats
path: root/test/testframe.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-09-19 20:32:18 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-09-19 20:32:18 (GMT)
commit465f9be6e3f818d20c650976a14d7698063cad00 (patch)
tree944e7c7b9fe3f25e4d285a6daaf01362cac1fb15 /test/testframe.c
parentbd24d226d67b26dd43910df4e677751e6120f8f5 (diff)
downloadhdf5-465f9be6e3f818d20c650976a14d7698063cad00.zip
hdf5-465f9be6e3f818d20c650976a14d7698063cad00.tar.gz
hdf5-465f9be6e3f818d20c650976a14d7698063cad00.tar.bz2
[svn-r11441] Purpose:
Feature. Description: Added ALARM_ON, ALARM_OFF feature to terminate tests that run more than the default time limit. So far, the feature is applied in the standard test frame. Platforms tested: heping PP.
Diffstat (limited to 'test/testframe.c')
-rw-r--r--test/testframe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testframe.c b/test/testframe.c
index 45992a0..4478cb4 100644
--- a/test/testframe.c
+++ b/test/testframe.c
@@ -133,7 +133,7 @@ void TestInit(const char *ProgName, void (*private_usage)(void), int (*private_p
* half the functions this test calls are private, so automatic error
* reporting wouldn't do much good since it's triggered at the API layer.
*/
- H5Eset_auto_stack(H5E_DEFAULT, NULL, NULL);
+ H5Eset_auto(NULL, NULL);
/*
* Record the program name and private routines if provided.
@@ -298,7 +298,9 @@ void PerformTests(void)
MESSAGE(5, ("===============================================\n"));
Test[Loop].NumErrors = num_errs;
Test_parameters = Test[Loop].Parameters;
+ ALARM_ON;
Test[Loop].Call();
+ ALARM_OFF;
Test[Loop].NumErrors = num_errs - Test[Loop].NumErrors;
MESSAGE(5, ("===============================================\n"));
MESSAGE(5, ("There were %d errors detected.\n\n", (int)Test[Loop].NumErrors));