[libc][NFC] Clear all exceptions in exception_flags_test before raising another.
authorSiva Chandra <sivachandra@google.com>
Wed, 30 Jun 2021 20:45:38 +0000 (13:45 -0700)
committerSiva Chandra <sivachandra@google.com>
Wed, 30 Jun 2021 20:48:07 +0000 (13:48 -0700)
commit578a4cfe19121df5e5e02bf03482233e3bc56a0d
treeb62b8149ceb9a7f4e62983077f9cde309f0489aa
parentbf6770f9bd606643c8ea8a7ab03da5da5960e98e
[libc][NFC] Clear all exceptions in exception_flags_test before raising another.

This is because, raising some exceptions can raise other ones. For
example, raising FE_OVERFLOW can raise FE_INEXACT. So, we need to clear all
exceptions if we want a clean slate.
libc/test/src/fenv/exception_flags_test.cpp