Module Name: src
Committed By: martin
Date: Mon Apr 4 14:47:22 UTC 2011
Modified Files:
src/tests/lib/libpthread: t_mutex.c
Log Message:
Do only set a (lower than default) timeout value if we are on powerpc and
expect to run into a real deadrun ofter.
The (too short) timeout otherwise makes slower archs fail.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/tests/lib/libpthread/t_mutex.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/tests/lib/libpthread/t_mutex.c
diff -u src/tests/lib/libpthread/t_mutex.c:1.4 src/tests/lib/libpthread/t_mutex.c:1.5
--- src/tests/lib/libpthread/t_mutex.c:1.4 Mon Feb 21 21:43:41 2011
+++ src/tests/lib/libpthread/t_mutex.c Mon Apr 4 14:47:22 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mutex.c,v 1.4 2011/02/21 21:43:41 riz Exp $ */
+/* $NetBSD: t_mutex.c,v 1.5 2011/04/04 14:47:22 martin Exp $ */
/*
* Copyright (c) 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
#include <sys/cdefs.h>
__COPYRIGHT("@(#) Copyright (c) 2008\
The NetBSD Foundation, inc. All rights reserved.");
-__RCSID("$NetBSD: t_mutex.c,v 1.4 2011/02/21 21:43:41 riz Exp $");
+__RCSID("$NetBSD: t_mutex.c,v 1.5 2011/04/04 14:47:22 martin Exp $");
#include <pthread.h>
#include <stdio.h>
@@ -118,7 +118,8 @@
ATF_TC_HEAD(mutex2, tc)
{
atf_tc_set_md_var(tc, "descr", "Checks mutexes");
- atf_tc_set_md_var(tc, "timeout", "40");
+ if (strcmp(atf_config_get("atf_arch"), "powerpc") == 0)
+ atf_tc_set_md_var(tc, "timeout", "40");
}
ATF_TC_BODY(mutex2, tc)
{
@@ -189,7 +190,8 @@
{
atf_tc_set_md_var(tc, "descr", "Checks mutexes using a static "
"initializer");
- atf_tc_set_md_var(tc, "timeout", "40");
+ if (strcmp(atf_config_get("atf_arch"), "powerpc") == 0)
+ atf_tc_set_md_var(tc, "timeout", "40");
}
ATF_TC_BODY(mutex3, tc)
{