diff options
author | Florian Weimer <fweimer@redhat.com> | 2018-05-23 14:16:18 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2018-05-23 15:27:01 +0200 |
commit | 5f7b841d3aebdccc2baed27cb4b22ddb08cd7c0c (patch) | |
tree | 72c894b5b6bbafa8df86036263a5ef584d64bbe3 /misc/Makefile | |
parent | ed983107bbc62245b06b99f02e69acf36a0baa3e (diff) | |
download | glibc-5f7b841d3aebdccc2baed27cb4b22ddb08cd7c0c.tar glibc-5f7b841d3aebdccc2baed27cb4b22ddb08cd7c0c.tar.gz glibc-5f7b841d3aebdccc2baed27cb4b22ddb08cd7c0c.tar.bz2 glibc-5f7b841d3aebdccc2baed27cb4b22ddb08cd7c0c.zip |
Implement allocate_once for atomic initialization with allocation
Diffstat (limited to 'misc/Makefile')
-rw-r--r-- | misc/Makefile | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/misc/Makefile b/misc/Makefile index a1d568b981..b7be2bc19a 100644 --- a/misc/Makefile +++ b/misc/Makefile @@ -70,9 +70,11 @@ routines := brk sbrk sstk ioctl \ getloadavg getclktck \ fgetxattr flistxattr fremovexattr fsetxattr getxattr \ listxattr lgetxattr llistxattr lremovexattr lsetxattr \ - removexattr setxattr getauxval ifunc-impl-list makedev + removexattr setxattr getauxval ifunc-impl-list makedev \ + allocate_once -generated += tst-error1.mtrace tst-error1-mem.out +generated += tst-error1.mtrace tst-error1-mem.out \ + tst-allocate_once.mtrace tst-allocate_once-mem.out aux := init-misc install-lib := libg.a @@ -84,11 +86,12 @@ tests := tst-dirname tst-tsearch tst-fdset tst-efgcvt tst-mntent tst-hsearch \ tst-preadvwritev tst-preadvwritev64 tst-makedev tst-empty \ tst-preadvwritev2 tst-preadvwritev64v2 -tests-internal := tst-atomic tst-atomic-long +tests-internal := tst-atomic tst-atomic-long tst-allocate_once tests-static := tst-empty ifeq ($(run-built-tests),yes) -tests-special += $(objpfx)tst-error1-mem.out +tests-special += $(objpfx)tst-error1-mem.out \ + $(objpfx)tst-allocate_once-mem.out endif CFLAGS-select.c += -fexceptions -fasynchronous-unwind-tables @@ -137,3 +140,8 @@ tst-error1-ARGS = $(objpfx)tst-error1.out $(objpfx)tst-error1-mem.out: $(objpfx)tst-error1.out $(common-objpfx)malloc/mtrace $(objpfx)tst-error1.mtrace > $@; \ $(evaluate-test) + +tst-allocate_once-ENV = MALLOC_TRACE=$(objpfx)tst-allocate_once.mtrace +$(objpfx)tst-allocate_once-mem.out: $(objpfx)tst-allocate_once.out + $(common-objpfx)malloc/mtrace $(objpfx)tst-allocate_once.mtrace > $@; \ + $(evaluate-test) |