summaryrefslogtreecommitdiffstats
path: root/contrib/atf/atf-sh/misc_helpers.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/atf/atf-sh/misc_helpers.sh')
-rw-r--r--contrib/atf/atf-sh/misc_helpers.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/contrib/atf/atf-sh/misc_helpers.sh b/contrib/atf/atf-sh/misc_helpers.sh
index 8b72f0a..1f83688 100644
--- a/contrib/atf/atf-sh/misc_helpers.sh
+++ b/contrib/atf/atf-sh/misc_helpers.sh
@@ -143,6 +143,18 @@ atf_check_equal_eval_fail_body()
atf_check_equal '${x}' '${y}'
}
+atf_test_case atf_check_timeout
+atf_check_timeout_head()
+{
+ atf_set "descr" "Helper test case for the t_atf_check test program"
+ atf_set "timeout" 1
+}
+atf_check_timeout_body()
+{
+ atf_check true
+ atf_check sleep 42
+}
+
# -------------------------------------------------------------------------
# Helper tests for "t_config".
# -------------------------------------------------------------------------
@@ -273,6 +285,7 @@ atf_init_test_cases()
atf_add_test_case atf_check_equal_fail
atf_add_test_case atf_check_equal_eval_ok
atf_add_test_case atf_check_equal_eval_fail
+ atf_add_test_case atf_check_timeout
# Add helper tests for t_config.
atf_add_test_case config_get
OpenPOWER on IntegriCloud