28 #ifndef D_IEEE754ExceptionsPlugin_h 29 #define D_IEEE754ExceptionsPlugin_h 31 #include "CppUTest/TestPlugin.h" 33 class IEEE754ExceptionsPlugin:
public TestPlugin
36 IEEE754ExceptionsPlugin(
const SimpleString& name =
"IEEE754ExceptionsPlugin");
38 virtual void preTestAction(UtestShell& test, TestResult& result) _override;
39 virtual void postTestAction(UtestShell& test, TestResult& result) _override;
41 static void disableInexact(
void);
42 static void enableInexact(
void);
43 static bool checkIeee754OverflowExceptionFlag();
44 static bool checkIeee754UnderflowExceptionFlag();
45 static bool checkIeee754InexactExceptionFlag();
46 static bool checkIeee754DivByZeroExceptionFlag();
49 void ieee754Check(UtestShell& test, TestResult& result,
int flag,
const char* text);
50 static bool inexactDisabled_;