From 4c110ccec1f5a396464ec2aecaff451c8e858248 Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Tue, 24 Apr 2001 22:57:36 +0000 Subject: [PATCH] t12() requires threads --- bin/tests/tasks/t_tasks.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/bin/tests/tasks/t_tasks.c b/bin/tests/tasks/t_tasks.c index 52bee589cd..7ccb018c6a 100644 --- a/bin/tests/tasks/t_tasks.c +++ b/bin/tests/tasks/t_tasks.c @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: t_tasks.c,v 1.26 2001/04/13 02:19:35 tale Exp $ */ +/* $Id: t_tasks.c,v 1.27 2001/04/24 22:57:36 gson Exp $ */ #include @@ -2008,11 +2008,12 @@ t_tasks12(void) { static void t12(void) { - int result; - t_assert("tasks", 12, T_REQUIRED, a12); - result = t_tasks12(); - t_result(result); + + if (threaded) + t_result(t_tasks12()); + else + require_threads(); } static int T13_nfails;