Changeset 60311 in vbox for trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestTerm.c
- Timestamp:
- Apr 4, 2016 5:01:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/bootsectors/bs3kit/bs3-cmn-TestTerm.c
r59865 r60311 39 39 BS3_DECL(void) bs3TestSubCleanup(void) 40 40 { 41 if ( BS3_DATA_NM(g_szBs3SubTest)[0] != '\0')41 if (g_szBs3SubTest[0] != '\0') 42 42 { 43 if (! BS3_DATA_NM(g_fbBs3SubTestReported))43 if (!g_fbBs3SubTestReported) 44 44 { 45 45 size_t cch; 46 uint16_t cErrors = BS3_DATA_NM(g_cusBs3TestErrors) - BS3_DATA_NM(g_cusBs3SubTestAtErrors);46 uint16_t cErrors = g_cusBs3TestErrors - g_cusBs3SubTestAtErrors; 47 47 48 48 /* Tell VMMDev. */ … … 50 50 51 51 /* Print result to the console. */ 52 Bs3PrintStr( BS3_DATA_NM(g_szBs3SubTest));52 Bs3PrintStr(g_szBs3SubTest); 53 53 Bs3PrintChr(':'); 54 cch = Bs3StrLen( BS3_DATA_NM(g_szBs3SubTest));54 cch = Bs3StrLen(g_szBs3SubTest); 55 55 do 56 56 Bs3PrintChr(' '); … … 58 58 59 59 if (!cErrors) 60 Bs3PrintStr(! BS3_DATA_NM(g_fbBs3SubTestSkipped)? "PASSED\n" : "SKIPPED\n");60 Bs3PrintStr(!g_fbBs3SubTestSkipped ? "PASSED\n" : "SKIPPED\n"); 61 61 else 62 62 { 63 BS3_DATA_NM(g_cusBs3SubTestsFailed)++;64 Bs3Printf("FAILED (%u errors)\n", BS3_DATA_NM(g_szBs3SubTest), cErrors);63 g_cusBs3SubTestsFailed++; 64 Bs3Printf("FAILED (%u errors)\n", g_szBs3SubTest, cErrors); 65 65 } 66 66 } 67 67 68 68 /* Reset the sub-test. */ 69 BS3_DATA_NM(g_fbBs3SubTestReported)= true;70 BS3_DATA_NM(g_fbBs3SubTestSkipped)= false;71 BS3_DATA_NM(g_szBs3SubTest)[0] = '\0';69 g_fbBs3SubTestReported = true; 70 g_fbBs3SubTestSkipped = false; 71 g_szBs3SubTest[0] = '\0'; 72 72 } 73 73 } … … 90 90 { 91 91 Bs3PrintStr(BS3_CMN_NM(g_pszBs3Test)); 92 if ( BS3_DATA_NM(g_cusBs3TestErrors)== 0)93 Bs3Printf(": SUCCESS (%u tests)\n", BS3_DATA_NM(g_cusBs3SubTests));92 if (g_cusBs3TestErrors == 0) 93 Bs3Printf(": SUCCESS (%u tests)\n", g_cusBs3SubTests); 94 94 else 95 95 Bs3Printf(": FAILURE - %u (%u of %u tests)\n", 96 BS3_DATA_NM(g_cusBs3TestErrors), BS3_DATA_NM(g_cusBs3SubTestsFailed), BS3_DATA_NM(g_cusBs3SubTests));96 g_cusBs3TestErrors, g_cusBs3SubTestsFailed, g_cusBs3SubTests); 97 97 } 98 98 … … 100 100 * Tell VMMDev. 101 101 */ 102 bs3TestSendCmdWithU32(VMMDEV_TESTING_CMD_TERM, BS3_DATA_NM(g_cusBs3TestErrors));102 bs3TestSendCmdWithU32(VMMDEV_TESTING_CMD_TERM, g_cusBs3TestErrors); 103 103 104 104 BS3_CMN_NM(g_pszBs3Test) = NULL;
Note:
See TracChangeset
for help on using the changeset viewer.