This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] test-skeleton.c: Do not enable M_PERTURB
- From: fweimer at redhat dot com (Florian Weimer)
- To: libc-alpha at sourceware dot org
- Date: Thu, 23 Jun 2016 16:40:42 +0200
- Subject: [PATCH] test-skeleton.c: Do not enable M_PERTURB
- Authentication-results: sourceware.org; auth=none
Over all, this decreases the realism of the tests because
it ensures that freshly allocated memory has a well-defined
bit pattern. It also causes malloc to take internal paths
different from regular application usage, and therefore
reduces malloc test coverage.
2016-06-23 Florian Weimer <fweimer@redhat.com>
* test-skeleton.c (main): Do not enable M_PERTURB.
diff --git a/test-skeleton.c b/test-skeleton.c
index d9bf989..e462eee 100644
--- a/test-skeleton.c
+++ b/test-skeleton.c
@@ -346,9 +346,6 @@ main (int argc, char *argv[])
unsigned int timeoutfactor = 1;
pid_t termpid;
- /* Make uses of freed and uninitialized memory known. */
- mallopt (M_PERTURB, 42);
-
#ifdef STDOUT_UNBUFFERED
setbuf (stdout, NULL);
#endif