cosmopolitan/test/libc/intrin
Gabriel Ravier 7f21547122
Fix occasional crash in test/libc/intrin/mmap_test (#1289)
This test would sometimes crash due to the EZBENCH2() macro occasionally
running the first benchmark (BenchMmapPrivate()) less times than it does
the second benchmark (BenchUnmap()) - this would then lead to a crash in
BenchUnmap() because BenchUnmap() expects that BenchMmapPrivate() has to
previously have been called at least as many times as it has itself such
that a region of memory has been mapped, for BenchUnmap() to then unmap.

This commit fixes this by utilizing the newer BENCHMARK() macro (instead
of the EZBENCH2() macro) which runs the benchmark using an count of runs
specified directly by the benchmark itself, which allows us to make sure
that the two benchmark functions get ran the exact same amount of times.
2024-09-14 17:07:56 -07:00
..
BUILD.mk Make improvements 2024-09-01 01:27:47 -07:00
cosmo_once_test.c Improve multithreading 2024-07-21 14:40:45 -07:00
countbits_test.c Bring back gc() function 2024-01-08 10:26:28 -08:00
demangle_cases.inc Write more __demangle() tests 2024-06-02 07:37:15 -07:00
demangle_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
describeflags_test.c Avoid linker conflicts on DescribeFoo symbols 2024-08-24 18:10:22 -07:00
describegidlist_test.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
describesigset_test.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
dos2errno_test.c Get rid of .internal.h convention in LIBC_INTRIN 2024-07-19 19:38:00 -07:00
fmax_test.c Release Cosmopolitan v3.6.0 2024-07-23 03:28:19 -07:00
formatint32_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
getenv_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
kprintf_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
lock_test.c Remove __threaded variable 2024-07-28 23:43:30 -07:00
lockipc_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
lockscale_test.c Implement proper time zone support 2024-05-04 23:06:37 -07:00
magicu_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
memchr_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
memcmp_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
memmove_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
memrchr_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
memset_test.c Fix issues with previous commit 2024-09-10 01:59:46 -07:00
mmap_scalability_test.c Use better memory strategy on Windows 2024-07-20 02:20:03 -07:00
mmap_test.c Fix occasional crash in test/libc/intrin/mmap_test (#1289) 2024-09-14 17:07:56 -07:00
mprotect_test.c Use better memory strategy on Windows 2024-07-20 02:20:03 -07:00
mremap_test.c Use better memory strategy on Windows 2024-07-20 02:20:03 -07:00
munmap_test.c Share file offset across processes 2024-08-03 01:39:11 -07:00
popcnt_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
pthread_mutex_lock2_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
pthread_mutex_lock_test.c Make recursive mutexes faster 2024-09-10 00:08:59 -07:00
pthread_spin_lock_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
putenv_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
rand64_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
sched_yield_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
strchr_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
strcmp_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
strlen_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
strrchr_test.c flip et / noet in modelines 2023-12-07 22:17:11 -05:00
strsignal_r_test.c Apply clang-format update to repo (#1154) 2024-04-25 10:38:00 -07:00
tree_test.c Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00