aboutsummaryrefslogtreecommitdiff
path: root/posix/Makefile
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2017-10-21 18:03:30 +0200
committerFlorian Weimer <fweimer@redhat.com>2017-10-21 18:03:30 +0200
commite80fc1fc98bf614eb01cf8325503df3a1451a99c (patch)
treeb3914045f886ad1f4f9764f6d5b98ca24f73ff08 /posix/Makefile
parent797ba44ba27521261f94cc521f1c2ca74f650147 (diff)
downloadglibc-e80fc1fc98bf614eb01cf8325503df3a1451a99c.zip
glibc-e80fc1fc98bf614eb01cf8325503df3a1451a99c.tar.gz
glibc-e80fc1fc98bf614eb01cf8325503df3a1451a99c.tar.bz2
glob: Add new test tst-glob-tilde
The new test checks for memory leaks (see bug 22325) and attempts to trigger the buffer overflow in bug 22320.
Diffstat (limited to 'posix/Makefile')
-rw-r--r--posix/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/posix/Makefile b/posix/Makefile
index b589442..d4a5299 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -94,7 +94,8 @@ tests := test-errno tstgetopt testfnm runtests runptests \
tst-fnmatch3 bug-regex36 tst-getaddrinfo5 \
tst-posix_spawn-fd tst-posix_spawn-setsid \
tst-posix_fadvise tst-posix_fadvise64 \
- tst-sysconf-empty-chroot tst-glob_symlinks tst-fexecve
+ tst-sysconf-empty-chroot tst-glob_symlinks tst-fexecve \
+ tst-glob-tilde
tests-internal := bug-regex5 bug-regex20 bug-regex33 \
tst-rfc3484 tst-rfc3484-2 tst-rfc3484-3 \
tst-glob_lstat_compat
@@ -143,7 +144,8 @@ tests-special += $(objpfx)bug-regex2-mem.out $(objpfx)bug-regex14-mem.out \
$(objpfx)tst-rxspencer-no-utf8-mem.out $(objpfx)tst-pcre-mem.out \
$(objpfx)tst-boost-mem.out $(objpfx)tst-getconf.out \
$(objpfx)bug-glob2-mem.out $(objpfx)tst-vfork3-mem.out \
- $(objpfx)tst-fnmatch-mem.out $(objpfx)bug-regex36-mem.out
+ $(objpfx)tst-fnmatch-mem.out $(objpfx)bug-regex36-mem.out \
+ $(objpfx)tst-glob-tilde-mem.out
xtests-special += $(objpfx)bug-ga2-mem.out
endif
@@ -352,6 +354,12 @@ $(objpfx)bug-glob2-mem.out: $(objpfx)bug-glob2.out
$(common-objpfx)malloc/mtrace $(objpfx)bug-glob2.mtrace > $@; \
$(evaluate-test)
+tst-glob-tilde-ENV = MALLOC_TRACE=$(objpfx)tst-glob-tilde.mtrace
+
+$(objpfx)tst-glob-tilde-mem.out: $(objpfx)tst-glob-tilde.out
+ $(common-objpfx)malloc/mtrace $(objpfx)tst-glob-tilde.mtrace > $@; \
+ $(evaluate-test)
+
$(inst_libexecdir)/getconf: $(inst_bindir)/getconf \
$(objpfx)getconf.speclist FORCE
$(addprefix $(..)./scripts/mkinstalldirs ,\