VirtualBox

Changeset 25517 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Dec 20, 2009 3:19:53 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56190
Message:

iprt/test.h: Added RTTestErrorCount and RTTestIErrorCount.

Location:
trunk/src/VBox/Runtime/r3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/test.cpp

    r20605 r25517  
    10501050
    10511051/**
     1052 * Get the current error count.
     1053 *
     1054 * @returns The error counter, UINT32_MAX if no valid test handle.
     1055 * @param   hTest       The test handle. If NIL_RTTEST we'll use the one
     1056 *                      associated with the calling thread.
     1057 */
     1058RTR3DECL(uint32_t) RTTestErrorCount(RTTEST hTest)
     1059{
     1060    PRTTESTINT pTest = hTest;
     1061    RTTEST_GET_VALID_RETURN_RC(pTest, UINT32_MAX);
     1062
     1063    return ASMAtomicReadU32(&pTest->cErrors);
     1064}
     1065
     1066
     1067/**
    10521068 * Increments the error counter and prints a failure message.
    10531069 *
  • trunk/src/VBox/Runtime/r3/testi.cpp

    r19944 r25517  
    103103
    104104
     105RTR3DECL(uint32_t) RTTestIErrorCount(void)
     106{
     107    return RTTestErrorCount(NIL_RTTEST);
     108}
     109
     110
    105111RTR3DECL(int) RTTestIFailedV(const char *pszFormat, va_list va)
    106112{
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette