Changeset 70747 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Jan 25, 2018 4:14:15 PM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 120515
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/usb/UsbTest.cpp
r69753 r70747 507 507 508 508 if (rcPosix < 0) 509 RTTestFailed(g_hTest, "Test failed with %Rrc\n", RTErrConvertFromErrno(errno)); 509 { 510 /* 511 * The error status code of the unlink testcase is 512 * offset by 2000 for the sync and 1000 for the sync code path 513 * (see drivers/usb/misc/usbtest.c in the Linux kernel sources). 514 * 515 * Adjust to the actual status code so converting doesn't assert. 516 */ 517 int iTmpErrno = errno; 518 if (iTmpErrno >= 2000) 519 iTmpErrno -= 2000; 520 else if (iTmpErrno >= 1000) 521 iTmpErrno -= 1000; 522 RTTestFailed(g_hTest, "Test failed with %Rrc\n", RTErrConvertFromErrno(iTmpErrno)); 523 } 510 524 else 511 525 {
Note:
See TracChangeset
for help on using the changeset viewer.