mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
stdlib: Add testcases for labs(). (BZ #30263)
Test minimum and maximum long values, zero, and part of the range of long values. Use '-fno-builtin' to ensure we are testing the implementation. Reviewed-by: Wilco Dijkstra <Wilco.Dijkstra@arm.com>
This commit is contained in:
committed by
Siddhesh Poyarekar
parent
0d21b3783f
commit
b11db301e1
@@ -198,6 +198,7 @@ tests := \
|
||||
tst-cxa_atexit \
|
||||
tst-environ \
|
||||
tst-getrandom \
|
||||
tst-labs \
|
||||
tst-limits \
|
||||
tst-makecontext \
|
||||
tst-makecontext-align \
|
||||
@@ -289,6 +290,7 @@ LDFLAGS-test-dlclose-exit-race = $(LDFLAGS-rdynamic)
|
||||
LDLIBS-test-dlclose-exit-race-helper.so = $(libsupport) $(shared-thread-library)
|
||||
|
||||
CFLAGS-tst-abs.c += -fno-builtin
|
||||
CFLAGS-tst-labs.c += -fno-builtin
|
||||
|
||||
ifeq ($(have-cxx-thread_local),yes)
|
||||
CFLAGS-tst-quick_exit.o = -std=c++11
|
||||
|
Reference in New Issue
Block a user