summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/strchr/strchrtest.c
diff options
context:
space:
mode:
authorjasper <>2021-09-01 09:26:32 +0000
committerjasper <>2021-09-01 09:26:32 +0000
commit15410c1fb383e330324b13897f3703fcfde7969e (patch)
tree4d38bd9b948f5f7e3335e47a697a63593c1a8153 /src/regress/lib/libc/strchr/strchrtest.c
parent414ce9bc403d88f0560f6570625d3116e7d18e5b (diff)
downloadopenbsd-15410c1fb383e330324b13897f3703fcfde7969e.tar.gz
openbsd-15410c1fb383e330324b13897f3703fcfde7969e.tar.bz2
openbsd-15410c1fb383e330324b13897f3703fcfde7969e.zip
remove manual fiddling with MALLOC_OPTIONS from libc regress tests
these options should be set globally (sysctl) when running regress as opposed to having individual tests set it, barring a few specific exceptions. ok bluhm@
Diffstat (limited to 'src/regress/lib/libc/strchr/strchrtest.c')
-rw-r--r--src/regress/lib/libc/strchr/strchrtest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regress/lib/libc/strchr/strchrtest.c b/src/regress/lib/libc/strchr/strchrtest.c
index 64d6120305..0be4c8df63 100644
--- a/src/regress/lib/libc/strchr/strchrtest.c
+++ b/src/regress/lib/libc/strchr/strchrtest.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strchrtest.c,v 1.1 2021/07/24 05:45:49 visa Exp $ */ 1/* $OpenBSD: strchrtest.c,v 1.2 2021/09/01 09:26:32 jasper Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2021 Visa Hankala 4 * Copyright (c) 2021 Visa Hankala
@@ -28,9 +28,6 @@ main(void)
28 char *buf; 28 char *buf;
29 size_t bufsize; 29 size_t bufsize;
30 30
31 /* Enable malloc security options. */
32 setenv("MALLOC_OPTIONS", "S", 0);
33
34 /* Allocate buffer with guard pages. */ 31 /* Allocate buffer with guard pages. */
35 bufsize = getpagesize(); 32 bufsize = getpagesize();
36 buf = malloc(bufsize); 33 buf = malloc(bufsize);