aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2012-10-14 19:21:49 -0700
committerBrian Behlendorf <[email protected]>2012-10-14 19:35:09 -0700
commit26099167e6b39d719ade3be2b5e087e29f1121cd (patch)
tree5703be60dd01dbfece321907ebc4a30a122b141d /cmd
parentee7913b644a2c812a249046f56eed39d1977d706 (diff)
Disable ztest deadman timer
The ztest deadman timer has been causing false positives in the testing VMs. To make it easier to spot possible regressions I'm disabling this timer. The buildbot test infrastructure will still mark ztest instances which take to long to complete as failures. Signed-off-by: Brian Behlendorf <[email protected]> Issue #1018
Diffstat (limited to 'cmd')
-rw-r--r--cmd/ztest/ztest.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/ztest/ztest.c b/cmd/ztest/ztest.c
index 4479c5939..7e941b5cb 100644
--- a/cmd/ztest/ztest.c
+++ b/cmd/ztest/ztest.c
@@ -5289,11 +5289,13 @@ ztest_resume_thread(void *arg)
#define GRACE 300
+#if 0
static void
ztest_deadman_alarm(int sig)
{
fatal(0, "failed to complete within %d seconds of deadline", GRACE);
}
+#endif
static void
ztest_execute(int test, ztest_info_t *zi, uint64_t id)
@@ -5550,11 +5552,13 @@ ztest_run(ztest_shared_t *zs)
(thread_func_t)ztest_resume_thread, spa, TS_RUN, NULL, 0, 0,
PTHREAD_CREATE_JOINABLE)), !=, NULL);
+#if 0
/*
* Set a deadman alarm to abort() if we hang.
*/
signal(SIGALRM, ztest_deadman_alarm);
alarm((zs->zs_thread_stop - zs->zs_thread_start) / NANOSEC + GRACE);
+#endif
/*
* Verify that we can safely inquire about about any object,