summaryrefslogtreecommitdiffstats
path: root/hl
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2014-07-28 19:08:07 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2014-07-28 19:08:07 (GMT)
commit8640a90adb739167ce5c8a4936b56eda7f68bf0c (patch)
tree405f44ec93ae22641c20386b988d7abf9dc420a3 /hl
parenta1701cb901f62ccaaa08ad2c1ae9b421919c9bf9 (diff)
downloadhdf5-8640a90adb739167ce5c8a4936b56eda7f68bf0c.zip
hdf5-8640a90adb739167ce5c8a4936b56eda7f68bf0c.tar.gz
hdf5-8640a90adb739167ce5c8a4936b56eda7f68bf0c.tar.bz2
[svn-r25486] Description:
ifdef out the debugging code for detecting keypresses Tested on: Mac OSX/64 10.9.3 (amazon) w/C++ & FORTRAN (h5committest not required on this branch)
Diffstat (limited to 'hl')
-rw-r--r--hl/test/ld_monitor.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/hl/test/ld_monitor.c b/hl/test/ld_monitor.c
index cc17b8c..9dc666f 100644
--- a/hl/test/ld_monitor.c
+++ b/hl/test/ld_monitor.c
@@ -4,6 +4,7 @@
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
+#ifdef SWMR_DEBUG
#include <termios.h>
#include <fcntl.h>
@@ -41,6 +42,7 @@ static int get_key(void)
}
return c;
}
+#endif /* SWMR_DEBUG */
#define TEST_BUF_SIZE 100
@@ -93,8 +95,10 @@ monitor_dset(const char *fname, const char *dname)
goto done;
}
+#ifdef SWMR_DEBUG
/* Monitor for keypresses */
set_mode(1);
+#endif /* SWMR_DEBUG */
/* Monitor the dataset for changes */
while(1) {
@@ -148,9 +152,11 @@ monitor_dset(const char *fname, const char *dname)
/* Sleep before next monitor */
sleep(1);
+#ifdef SWMR_DEBUG
/* Check for keypress */
if(get_key())
break;
+#endif /* SWMR_DEBUG */
} /* end while */
done: