SMBIOS Library
|
Go to the source code of this file.
Classes | |
class | skip_test |
Macros | |
#define | WHEREAMI typeid(*this).name() << " (line " << __LINE__ << ")... " |
#define | GET_FLAGS() std::ios::fmtflags old_opts = cout.flags() |
#define | RESTORE_FLAGS() cout.flags(old_opts) |
#define | startTest(arg) do{GET_FLAGS(); cout << arg << WHEREAMI; RESTORE_FLAGS();}while(0) |
#define | passTest(arg) do{GET_FLAGS(); cout << "[ ok ]" << arg << endl; RESTORE_FLAGS();} while(0) |
#define | failTest(arg) do{GET_FLAGS(); cout << "[FAIL]" << arg << endl; RESTORE_FLAGS();} while(0) |
#define | skipTest(arg) do{GET_FLAGS(); cout << "[SKIP]" << arg << endl; RESTORE_FLAGS();} while(0) |
#define | STD_TEST_START_CHECKSKIP(arg) startTest(arg); bool skip=false; cout << flush; try { |
#define | STD_TEST_START(arg) startTest(arg); bool skip=false; cout << flush; try { |
#define | STD_TEST_END(arg) |
#define | ASSERT_THROWS(expr, exc) |
#define ASSERT_THROWS | ( | expr, | |
exc | |||
) |
Definition at line 79 of file outputctl.h.
Referenced by testPlatform::testCmosWriting(), testPlatform::testConstructionOffset2(), testStandalone::testGetBoundaries(), testStandalone::testMemoryBadFiles(), testStandalone::testMemoryFuncs(), testPlatform::testOutOfBounds(), and testRbu::testRbuBadData().
#define failTest | ( | arg | ) | do{GET_FLAGS(); cout << "[FAIL]" << arg << endl; RESTORE_FLAGS();} while(0) |
Definition at line 46 of file outputctl.h.
#define GET_FLAGS | ( | ) | std::ios::fmtflags old_opts = cout.flags() |
Definition at line 41 of file outputctl.h.
#define passTest | ( | arg | ) | do{GET_FLAGS(); cout << "[ ok ]" << arg << endl; RESTORE_FLAGS();} while(0) |
Definition at line 45 of file outputctl.h.
#define RESTORE_FLAGS | ( | ) | cout.flags(old_opts) |
Definition at line 42 of file outputctl.h.
#define skipTest | ( | arg | ) | do{GET_FLAGS(); cout << "[SKIP]" << arg << endl; RESTORE_FLAGS();} while(0) |
Definition at line 47 of file outputctl.h.
#define startTest | ( | arg | ) | do{GET_FLAGS(); cout << arg << WHEREAMI; RESTORE_FLAGS();}while(0) |
Definition at line 44 of file outputctl.h.
#define STD_TEST_END | ( | arg | ) |
Definition at line 60 of file outputctl.h.
Referenced by testPlatform::testAssetTag(), testPlatform::testBiosVersion(), testPlatform::testCmosChecksum(), testStandalone::testCmosConstructor(), testPlatform::testCmosWriting(), testStandalone::testConstIterator(), testPlatform::testConstructionOffset1(), testPlatform::testConstructionOffset2(), testStandalone::testEachItemAccessors(), testStandalone::testEntryCount(), testStandalone::testException(), testStandalone::testGetBoundaries(), testPlatform::testIdByte(), testPlatform::testIsDell(), testStandalone::testItemIdentity(), testStandalone::testLibraryVersion(), testStandalone::testMemoryBadFiles(), testStandalone::testMemoryFuncs(), testStandalone::testNonXml(), testPlatform::testOutOfBounds(), testRbu::testRbuBadData(), testRbu::testRbuBasic(), testRbu::testRbuNewVerCompare(), testRbu::testRbuNewVerSplit(), testRbu::testRbuOldVerCompare(), testRbu::testRbuOutput(), testPlatform::testServiceTag(), testPlatform::testServiceTagWriting(), testStandalone::testSmbiosXml(), testStandalone::testSmi_callingInterface(), testStandalone::testSmi_callingInterface_physaddr(), testPlatform::testStateBytes(), testStandalone::testStreamify(), testStandalone::testSubscriptOperator1(), testStandalone::testSubscriptOperator2(), testStandalone::testSubscriptOperator3(), testPlatform::testSystemInfo(), testPlatform::testSystemName(), testStandalone::testTable_Subscript(), testPlatform::testUpBoot(), and testPlatform::testVariousAccessors().
#define STD_TEST_START | ( | arg | ) | startTest(arg); bool skip=false; cout << flush; try { |
Definition at line 57 of file outputctl.h.
Referenced by testStandalone::testCmosConstructor(), testStandalone::testConstIterator(), testStandalone::testEachItemAccessors(), testStandalone::testEntryCount(), testStandalone::testException(), testStandalone::testGetBoundaries(), testStandalone::testItemIdentity(), testStandalone::testLibraryVersion(), testStandalone::testMemoryBadFiles(), testStandalone::testMemoryFuncs(), testStandalone::testNonXml(), testRbu::testRbuBadData(), testRbu::testRbuBasic(), testRbu::testRbuNewVerCompare(), testRbu::testRbuNewVerSplit(), testRbu::testRbuOldVerCompare(), testRbu::testRbuOutput(), testStandalone::testSmbiosXml(), testStandalone::testSmi_callingInterface(), testStandalone::testSmi_callingInterface_physaddr(), testStandalone::testStreamify(), testStandalone::testSubscriptOperator1(), testStandalone::testSubscriptOperator2(), testStandalone::testSubscriptOperator3(), and testStandalone::testTable_Subscript().
#define STD_TEST_START_CHECKSKIP | ( | arg | ) | startTest(arg); bool skip=false; cout << flush; try { |
Definition at line 56 of file outputctl.h.
Referenced by testPlatform::testAssetTag(), testPlatform::testBiosVersion(), testPlatform::testCmosChecksum(), testPlatform::testCmosWriting(), testPlatform::testConstructionOffset1(), testPlatform::testConstructionOffset2(), testPlatform::testIdByte(), testPlatform::testIsDell(), testPlatform::testOutOfBounds(), testPlatform::testServiceTag(), testPlatform::testServiceTagWriting(), testPlatform::testStateBytes(), testPlatform::testSystemInfo(), testPlatform::testSystemName(), testPlatform::testUpBoot(), and testPlatform::testVariousAccessors().
#define WHEREAMI typeid(*this).name() << " (line " << __LINE__ << ")... " |
Definition at line 38 of file outputctl.h.