History log of /src/tests/lib/libc/stdlib/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.36 18-Sep-2025 mrg

introduce a couple of new turn-off-gcc-warning variables and use them.

GCC 14 has a new annoying calloc() checker that we turn off in a bunch
of places, and there are a few more dangling-pointer issuse that come up,
but seem bogus.


Revision tags: perseant-exfatfs-base-20250801 netbsd-11-base
# 1.35 02-Mar-2025 riastradh

libc: New _r variants of heapsort, mergesort, qsort.

Also kheapsort_r for kernel/standalone use.

These variants allow the caller to pass a cookie through to the
comparison function, e.g. if you want to sort an array of indices
into a buffer.

qsort_r is new in POSIX.1-2024; the others are obvious analogues of
our nonstandard extensions for heapsort and mergesort.

PR lib/58931: qsort_r() missing


Revision tags: perseant-exfatfs-base-20240630 perseant-exfatfs-base
# 1.34 04-Jul-2023 riastradh

branches: 1.34.2;
t_posix_memalign: Expand test cases and properties.

- Test cartesian product of a sampling of sizes and a sampling of
alignments.

- Verify all the edge cases I could find in posix_memalign and
aligned_alloc, including failure modes.

- Test an unreasonably large (but aligned) allocation size.

- Use ATF_CHECK_* instead of ATF_REQUIRE_* so all failures will be
reported, not just the first one.

- While here, build with -fno-builtin-aligned_alloc and with
-fno-builtin-posix_memalign to make sure the compiler doesn't try
any shenanigans.

XXX pullup-10


Revision tags: netbsd-10-0-RELEASE netbsd-10-0-RC6 netbsd-10-0-RC5 netbsd-10-0-RC4 netbsd-10-0-RC3 netbsd-10-0-RC2 netbsd-10-0-RC1 netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.33 01-Jul-2020 jruoho

branches: 1.33.6;
Add basic checks for a64l(3), l64a(3), and l64a_r(3).


# 1.32 30-Jun-2020 jruoho

After a comedy of errors, move t_mbtowc to its final resting place.


# 1.31 29-Jun-2020 jruoho

Use -Wl,--no-fatal-warnings for the mktemp(3) test.


# 1.30 27-Jun-2020 jruoho

Start moving the remaining tests from src/regress to src/tests.


# 1.29 27-Jun-2020 jruoho

Move the test for mktemp(3) to the right place.


Revision tags: netbsd-8-3-RELEASE netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE phil-wifi-20200421 phil-wifi-20200411 is-mlppp-base phil-wifi-20200406 netbsd-8-2-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 phil-wifi-20191119 netbsd-9-base phil-wifi-20190609 netbsd-8-1-RELEASE netbsd-8-1-RC1 pgoyette-compat-merge-20190127 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930 pgoyette-compat-0906 pgoyette-compat-0728 netbsd-8-0-RELEASE phil-wifi-base pgoyette-compat-0625 netbsd-8-0-RC2 pgoyette-compat-0521 pgoyette-compat-0502 pgoyette-compat-0422 netbsd-8-0-RC1 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base matt-nb8-mediatek-base perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1 pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107 pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.28 22-Dec-2015 christos

Add __TEST_FENV


# 1.27 22-Dec-2015 martin

Sync list of fenv enabled architectures again (PR 48633), this time for mips
addition.


# 1.26 21-Dec-2015 martin

While PR 48633 is not properly fixed, keep the additional lists of
fenv-enabled architectures in sync.


# 1.25 01-May-2015 christos

- new test for strtoi
- namespace protection for strto{i,u}
- separate manpages for strto{i,u} from the ones for strto{u,}l
From: Kamil Rytarowski


# 1.24 27-Dec-2014 martin

Move the list of <fenv.h> supporting architectures to the makefile and
sync it with other copies.


Revision tags: netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 riastradh-drm2-base3 riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base yamt-pagecache-base8 yamt-pagecache-base7 yamt-pagecache-base6 tls-maxphys-base yamt-pagecache-base5 yamt-pagecache-base4
# 1.23 04-Apr-2012 joerg

branches: 1.23.10;
Try fixing t_strtod to not depend on -ffloat-store by adding the
necessary volatiles.


# 1.22 29-Mar-2012 jruoho

Few fundamental consistency checks for the abs(3) family.


# 1.21 29-Mar-2012 jruoho

Few naive consistency checks for the atoi(3) family.


# 1.20 28-Mar-2012 jruoho

Add a small test that checks that random(3) does not always return zero when
the RNG is initialized with zero. Prompoted by the recent nasty bug in the
OpenBSD libc.


# 1.19 24-Feb-2012 joerg

Restrict -ffloat-store to t_strtod.c.


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.18 11-Sep-2011 jruoho

branches: 1.18.2;
See that system(3) works.


# 1.17 15-Jul-2011 jruoho

Fix wrong linker flag that has always been lurking here.


# 1.16 15-Jul-2011 jruoho

Split out the -lpthread tests to a separate file.

XXX: The only thing gained from this is seeing whether -lpthread breaks
the getenv(3) family. Yet, a strict hypothesis about this would require
that the two test files are identical, which they are not.


# 1.15 07-Jul-2011 jruoho

Merge 't_environment' and 't_environment_pth'.


# 1.14 04-Jun-2011 jruoho

Add some tests for strtol(3).


# 1.13 04-Jun-2011 jruoho

Add -ffloat-store add test lib/45020 also with __isnanl().


Revision tags: cherry-xenmp-base
# 1.12 09-May-2011 jruoho

branches: 1.12.2;
Few basic tests for exit(3).


# 1.11 05-Apr-2011 jruoho

Try to maintain the structure of libc and move 't_strtox' to 't_strtod'.


# 1.10 05-Apr-2011 jruoho

Add simple test cases for ttyname(3), strtod(3), and getgrent(3).


Revision tags: bouyer-quota2-nbase bouyer-quota2-base
# 1.9 13-Jan-2011 pgoyette

Moving t_hsearch - belongs in stdlib/


# 1.8 12-Jan-2011 pgoyette

Put the atexit test where it belongs - in libc/stdlib/


Revision tags: matt-mips64-premerge-20101231
# 1.7 01-Jan-2011 pgoyette

Convert a few more tests from regress to atf


# 1.6 23-Dec-2010 pgoyette

Migrate a couple more tests to aft


# 1.5 03-Dec-2010 njoly

Add testcase for PR/44189: strtod(3) wrong results with "-0x".


# 1.4 16-Nov-2010 tron

Split threaded environment test for the other environment tests as
suggested by Nicolas Joly in private e-mail. Linking a binary with
"libpthread" effects the beaviour of "libc" and we really want to
test both cases.


# 1.3 14-Nov-2010 tron

Add a new regression test "t_threaded" which tests using getenv_r(3),
putenv(3), setenv(3) and unsetenv(3) concurrently.


# 1.2 23-Sep-2010 christos

unit test for environment. Grr, someone should make fixing the sets easier
otherwise people are not going to want to write unit-tests.


Revision tags: matt-premerge-20091211
# 1.1 20-Jul-2009 joerg

Add a fast, platform independent hash function to libc.
The algorithm used is the Jenkins hash. The name (mi_vector_hash)
reflects the nature of the hash function.
Add glue for libc ATF tests and include a test case to make sure that
(mis)alignment and endianess are handled correctly.

Bump libc minor to 169.