~ubuntu-branches/ubuntu/quantal/virtualbox/quantal

« back to all changes in this revision

Viewing changes to src/VBox/Runtime/testcase/tstRTR0SemMutexDriver.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2012-04-05 12:41:55 UTC
  • mfrom: (3.1.12 sid)
  • Revision ID: package-import@ubuntu.com-20120405124155-i7b39tv5ddwhubbe
Tags: 4.1.12-dfsg-2
* Upstream has replaced the 4.1.12 tarball with a new one that fixes a
  crash when creating host only interfaces. (Closes: #667460)
  - Add 36-tarball-respin.patch which contains the diff between the old
    and the new tarball.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
    RTTESTI_CHECK_RC_RET(SUPR3CallR0Service("tstRTR0SemMutex", sizeof("tstRTR0SemMutex") - 1, enmSetup, 0, &pReq->Hdr),
117
117
                         VINF_SUCCESS, false);
118
118
    if (pReq->szMsg[0] == '!')
119
 
        return RTTestIFailedRc(false, "%s", &pReq->szMsg[1]);
 
119
        return !!RTTestIFailedRc(false, "%s", &pReq->szMsg[1]);
120
120
    if (pReq->szMsg[0])
121
121
        RTTestIPrintf(RTTESTLVL_ALWAYS, "%s", pReq->szMsg);
122
122
 
155
155
    RTTESTI_CHECK_RC_RET(rc = SUPR3CallR0Service("tstRTR0SemMutex", sizeof("tstRTR0SemMutex") - 1, enmCleanup, 0, &pReq->Hdr),
156
156
                         VINF_SUCCESS, false);
157
157
    if (pReq->szMsg[0] == '!')
158
 
        return RTTestIFailedRc(false, "%s", &pReq->szMsg[1]);
 
158
        return !!RTTestIFailedRc(false, "%s", &pReq->szMsg[1]);
159
159
    if (pReq->szMsg[0])
160
160
        RTTestIPrintf(RTTESTLVL_ALWAYS, "%s", pReq->szMsg);
161
161