Changeset 25614 in vbox for trunk/src/VBox/Runtime/testcase/tstRTLockValidator.cpp
- Timestamp:
- Jan 1, 2010 2:19:06 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 56305
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/testcase/tstRTLockValidator.cpp
r25605 r25614 33 33 * Header Files * 34 34 *******************************************************************************/ 35 #include <iprt/lockvalidator.h> 36 35 37 #include <iprt/asm.h> /* for return addresses */ 36 38 #include <iprt/critsect.h> 37 #include <iprt/lockvalidator.h>38 39 39 #include <iprt/err.h> 40 #include <iprt/stream.h> 40 #include <iprt/semaphore.h> 41 #include <iprt/test.h> 41 42 #include <iprt/thread.h> 42 #include <iprt/test.h>43 43 44 44 … … 169 169 RTTEST_CHECK_RC_OK_RET(g_hTest, RTCritSectDelete(&CritSect), false); 170 170 171 /* Add check for the other types as we add more scenarios. */ 171 RTSEMRW hSemRW; 172 RTTEST_CHECK_RC_OK_RET(g_hTest, RTSemRWCreate(&hSemRW), false); 173 RTTEST_CHECK_RC_OK_RET(g_hTest, RTSemRWRequestRead(hSemRW, 50), false); 174 int rc = RTSemRWRequestWrite(hSemRW, 1); 175 if (rc != VERR_SEM_LV_ILLEGAL_UPGRADE) 176 fRet = false; 177 RTTEST_CHECK_RET(g_hTest, RT_FAILURE_NP(rc), false); 178 RTTEST_CHECK_RC_OK_RET(g_hTest, RTSemRWReleaseRead(hSemRW), false); 179 RTTEST_CHECK_RC_OK_RET(g_hTest, RTSemRWDestroy(hSemRW), false); 180 172 181 return fRet; 173 182 }
Note:
See TracChangeset
for help on using the changeset viewer.