[libc-commits] [libc] [libc][test] adds errno clearer test fixture, gtest-style errno and fp except assertions (PR #91608)

Michael Flanders via libc-commits libc-commits at lists.llvm.org
Fri May 10 16:53:01 PDT 2024


================
@@ -18,7 +18,7 @@ namespace LIBC_NAMESPACE::testing {
 // This provides a test fixture (or base class for other test fixtures) that
 // asserts that each test does not leave the FPU state represented by `fenv_t`
 // (aka `FPState`) perturbed from its initial state.
-class FEnvSafeTest : public Test {
+class FEnvSafeTest : virtual public Test {
----------------
Flandini wrote:

I changed this to virtual to let FPTest subclass both fixtures:
```
template <typename T> class FPTest : 
public ErrnoSafeTest, public FEnvSafeTest {...
```

https://github.com/llvm/llvm-project/pull/91608


More information about the libc-commits mailing list