VirtualBox

Changeset 28514 in vbox for trunk/src/VBox/Runtime


Ignore:
Timestamp:
Apr 20, 2010 11:30:01 AM (15 years ago)
Author:
vboxsync
Message:

tstRTR0SemMutex: Added a missing check in the threaded part.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/testcase/tstRTR0SemMutex.cpp

    r28472 r28514  
    7777        { \
    7878            RTStrPrintf(pszErr, cchErr, "!%s -> %Rrc, expected %Rrc. line %u", szOp, rc, rcExpect, __LINE__); \
     79            SUPR0Printf("%s -> %d, expected %d. line %u", szOp, rc, rcExpect, __LINE__); \
    7980            break; \
    8081        }
  • trunk/src/VBox/Runtime/testcase/tstRTR0SemMutexDriver.cpp

    r28472 r28514  
    8484                        VINF_SUCCESS,
    8585                        rcCheck);
     86    if (Req.szMsg[0] == '!')
     87    {
     88        RTTestFailed(g_hTest, "%s", &Req.szMsg[1]);
     89        return VERR_GENERAL_FAILURE;
     90    }
     91    if (Req.szMsg[0])
     92        RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "%s", Req.szMsg);
    8693    return VINF_SUCCESS;
    8794}
     
    179186    if (rc)
    180187        return rc;
     188    g_hTest = hTest;
    181189    RTTestBanner(hTest);
    182190
Note: See TracChangeset for help on using the changeset viewer.

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