summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/Makefile.in1
-rw-r--r--test/ragged.c18
2 files changed, 13 insertions, 6 deletions
diff --git a/test/Makefile.in b/test/Makefile.in
index 3fb99cd..e98e1de 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -25,6 +25,7 @@ MOSTLYCLEAN=cmpd_dset.h5 dataset.h5 extend.h5 istore.h5 tfile1.h5 tfile2.h5 \
shtype2a.h5 shtype2b.h5 shtype3.h5 links.h5 chunk.h5 big.data \
big[0-9][0-9][0-9][0-9][0-9].h5 dtypes1.h5 dtypes2.h5 tattr.h5 \
tselect.h5 mtime.h5 ragged.h5
+CLEAN=$(TIMINGS)
# Source and object files for programs... The TEST_SRC list contains all the
# source files and is used for things like dependencies, archiving, etc. The
diff --git a/test/ragged.c b/test/ragged.c
index 981663d..e4e8a8c 100644
--- a/test/ragged.c
+++ b/test/ragged.c
@@ -578,7 +578,6 @@ main(int argc, char *argv[])
{
hid_t file, dcpl, ra;
hsize_t ch_size[2]; /*chunk size */
- struct sigaction act; /*alarm signal handler */
hsize_t rows_at_once=100; /*row aggregation */
int argno=1;
@@ -591,11 +590,18 @@ main(int argc, char *argv[])
H5Eset_auto(display_error_cb, NULL);
/* Get a SIGALRM every few seconds */
- act.sa_handler = catch_alarm;
- sigemptyset(&(act.sa_mask));
- act.sa_flags = 0;
- sigaction(SIGALRM, &act, NULL);
- alarm(1);
+#ifdef HAVE_SIGACTION
+ {
+ struct sigaction act;
+ act.sa_handler = catch_alarm;
+ sigemptyset(&(act.sa_mask));
+ act.sa_flags = 0;
+ sigaction(SIGALRM, &act, NULL);
+ alarm(1);
+ }
+#else
+ puts("No sigaction(). This test may run for a *long* time.");
+#endif
/* Create the file and ragged array */
if ((file=H5Fcreate("ragged.h5", H5F_ACC_TRUNC, H5P_DEFAULT,