cosmopolitan/test
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
..
ctl Fix shared_ptr::owner_before (#1274) 2024-09-01 17:34:39 -04:00
dsp Upgrade pl_mpeg 2024-09-06 19:10:34 -07:00
libc Fix occasional crash in test/libc/intrin/mmap_test (#1289) 2024-09-14 17:07:56 -07:00
libcxx Release Cosmopolitan v3.8.0 2024-08-30 20:14:07 -07:00
math Share file offset across processes 2024-08-03 01:39:11 -07:00
net Remove .internal from more header filenames 2024-08-04 12:52:25 -07:00
posix Speed up unnamed POSIX semaphores 2024-09-13 06:25:27 -07:00
tool Upgrade pl_mpeg 2024-09-06 19:10:34 -07:00
BUILD.mk Introduce Cosmopolitan Templates Library (CTL) 2024-06-03 09:21:59 -07:00