llvm-project/libc/utils/testutils
Paula Toth bf6f3894c4 [libc] Fix warnings on release build.
Summary:
These warnings were present when building llvm-libc in release mode.

```
workspace/llvm-project/libc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp:50:34: warning: 'None' is deprecated: Use Align() or Align(1) instead [-Wdeprecated-declarations]
  Conf.AddressAlignment = Align::None();

workspace/llvm-project/libc/utils/testutils/FDReaderUnix.cpp:19:7: warning: unused variable 'err' [-Wunused-variable]
  int err = ::pipe(pipefd);
```

For test-utils it seems in general we should use `report_fatal_error` instead of asserts as these are turned off when building in release mode.
https://llvm.org/docs/CodingStandards.html#assert-liberally

Reviewers: abrachet, sivachandra

Reviewed By: abrachet, sivachandra

Subscribers: tschuett, libc-commits

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D79469
2020-05-07 11:56:11 -07:00
..
CMakeLists.txt [libc] Add write(2) implementation for Linux and FDReader test utility 2020-04-17 13:21:05 -04:00
ExecuteFunction.h [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00
ExecuteFunctionUnix.cpp [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00
FDReader.h [libc] Add write(2) implementation for Linux and FDReader test utility 2020-04-17 13:21:05 -04:00
FDReaderUnix.cpp [libc] Fix warnings on release build. 2020-05-07 11:56:11 -07:00
StreamWrapper.cpp [libc] Improve information printed on failure of a math test which uses MPFR. 2020-05-05 10:26:29 -07:00
StreamWrapper.h [libc][NFC] Make all top of file comments consistent. 2020-04-08 10:18:37 -07:00