Module Name:    src
Committed By:   kamil
Date:           Sun May 27 08:08:24 UTC 2018

Modified Files:
        src/tests/lib/libc/sys: t_ptrace_wait.c

Log Message:
Fix ATF ptrace(2) bytes_transfer_piod_read_auxv test

Make the initial buffer larger to stop triggering the runtime assert about
its size.

Its size is probably larger than all real use cases, but it's good enough
for the purpose of ATF tests and immune of potential AUXV size.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/tests/lib/libc/sys/t_ptrace_wait.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/libc/sys/t_ptrace_wait.c
diff -u src/tests/lib/libc/sys/t_ptrace_wait.c:1.55 src/tests/lib/libc/sys/t_ptrace_wait.c:1.56
--- src/tests/lib/libc/sys/t_ptrace_wait.c:1.55	Sun May 27 00:36:56 2018
+++ src/tests/lib/libc/sys/t_ptrace_wait.c	Sun May 27 08:08:24 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: t_ptrace_wait.c,v 1.55 2018/05/27 00:36:56 christos Exp $	*/
+/*	$NetBSD: t_ptrace_wait.c,v 1.56 2018/05/27 08:08:24 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: t_ptrace_wait.c,v 1.55 2018/05/27 00:36:56 christos Exp $");
+__RCSID("$NetBSD: t_ptrace_wait.c,v 1.56 2018/05/27 08:08:24 kamil Exp $");
 
 #include <sys/param.h>
 #include <sys/types.h>
@@ -1734,7 +1734,8 @@ bytes_transfer(int operation, size_t siz
 #if defined(TWAIT_HAVE_STATUS)
 	int status;
 #endif
-	AuxInfo ai[64], *aip;
+	/* 512 is more than enough, for the purposes of ATF it's good enough */
+	AuxInfo ai[512], *aip;
 
 	ATF_REQUIRE(size < sizeof(ai));
 

Reply via email to