diff --git a/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp b/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp --- a/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp +++ b/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp @@ -47,7 +47,8 @@ TEST(OffsetDistribution, NoAlignment) { StudyConfiguration Conf; Conf.BufferSize = 8192; - Conf.AddressAlignment = Align::None(); + // Default constructor has no alignment. + Conf.AddressAlignment = Align(); Conf.Size.To = 1; OffsetDistribution OD(Conf); diff --git a/libc/utils/testutils/FDReaderUnix.cpp b/libc/utils/testutils/FDReaderUnix.cpp --- a/libc/utils/testutils/FDReaderUnix.cpp +++ b/libc/utils/testutils/FDReaderUnix.cpp @@ -17,7 +17,8 @@ FDReader::FDReader() { int err = ::pipe(pipefd); - assert(!err && "pipe(2) failed"); + if (err) + llvm::report_fatal_error("pipe(2) failed"); } FDReader::~FDReader() {