Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen As per PR bin/45180, do not traverse too ...
details: https://anonhg.NetBSD.org/src/rev/19e9ae38c986
branches: trunk
changeset: 767682:19e9ae38c986
user: jruoho <jruoho%NetBSD.org@localhost>
date: Wed Jul 27 05:04:11 2011 +0000
description:
As per PR bin/45180, do not traverse too deep.
diffstat:
tests/lib/libc/gen/t_getcwd.c | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r 40fb07fb889a -r 19e9ae38c986 tests/lib/libc/gen/t_getcwd.c
--- a/tests/lib/libc/gen/t_getcwd.c Wed Jul 27 03:18:52 2011 +0000
+++ b/tests/lib/libc/gen/t_getcwd.c Wed Jul 27 05:04:11 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_getcwd.c,v 1.2 2011/06/16 15:33:25 joerg Exp $ */
+/* $NetBSD: t_getcwd.c,v 1.3 2011/07/27 05:04:11 jruoho Exp $ */
/*-
* Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_getcwd.c,v 1.2 2011/06/16 15:33:25 joerg Exp $");
+__RCSID("$NetBSD: t_getcwd.c,v 1.3 2011/07/27 05:04:11 jruoho Exp $");
#include <sys/param.h>
#include <sys/stat.h>
@@ -71,12 +71,17 @@
ATF_TC_BODY(getcwd_fts, tc)
{
const char *str = NULL;
- const short depth = 3;
char buf[MAXPATHLEN];
char *argv[2];
FTSENT *ftse;
FTS *fts;
int ops;
+ short depth;
+
+ /*
+ * Do not traverse too deep; cf. PR bin/45180.
+ */
+ depth = 2;
argv[1] = NULL;
argv[0] = __UNCONST("/");
Home |
Main Index |
Thread Index |
Old Index