Changeset 70982 in vbox for trunk/src/VBox/ValidationKit
- Timestamp:
- Feb 13, 2018 9:04:08 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/serial/SerialTest.cpp
r70981 r70982 533 533 if ( (fStsLinesQueried & RTSERIALPORT_STS_LINE_DSR) 534 534 && !(fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_DTR)) 535 RTTestFailed(g_hTest, "DSR line got set when it shouldn't be on iteration %u\n", 536 rc, i); 535 RTTestFailed(g_hTest, "DSR line got set when it shouldn't be on iteration %u\n", i); 537 536 else if ( !(fStsLinesQueried & RTSERIALPORT_STS_LINE_DSR) 538 537 && !(fStsLinesClear & RTSERIALPORT_CHG_STS_LINES_F_DTR)) 539 RTTestFailed(g_hTest, "DSR line got cleared when it shouldn't be on iteration %u\n", 540 rc, i); 538 RTTestFailed(g_hTest, "DSR line got cleared when it shouldn't be on iteration %u\n", i); 541 539 } 542 540 else if ( (fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_DTR) 543 541 || (fStsLinesClear & RTSERIALPORT_CHG_STS_LINES_F_DTR)) 544 RTTestFailed(g_hTest, "DSR line didn't change when it should have on iteration %u\n", 545 rc, i); 542 RTTestFailed(g_hTest, "DSR line didn't change when it should have on iteration %u\n", i); 546 543 547 544 if ( (fStsLinesQueried & RTSERIALPORT_STS_LINE_DCD) … … 550 547 if ( (fStsLinesQueried & RTSERIALPORT_STS_LINE_DCD) 551 548 && !(fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_DTR)) 552 RTTestFailed(g_hTest, "DCD line got set when it shouldn't be on iteration %u\n", 553 rc, i); 549 RTTestFailed(g_hTest, "DCD line got set when it shouldn't be on iteration %u\n", i); 554 550 else if ( !(fStsLinesQueried & RTSERIALPORT_STS_LINE_DCD) 555 551 && !(fStsLinesClear & RTSERIALPORT_CHG_STS_LINES_F_DTR)) 556 RTTestFailed(g_hTest, "DCD line got cleared when it shouldn't be on iteration %u\n", 557 rc, i); 552 RTTestFailed(g_hTest, "DCD line got cleared when it shouldn't be on iteration %u\n", i); 558 553 } 559 554 else if ( (fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_DTR) 560 555 || (fStsLinesClear & RTSERIALPORT_CHG_STS_LINES_F_DTR)) 561 RTTestFailed(g_hTest, "DSR line didn't change when it should have on iteration %u\n", 562 rc, i); 556 RTTestFailed(g_hTest, "DSR line didn't change when it should have on iteration %u\n", i); 563 557 564 558 if ( (fStsLinesQueried & RTSERIALPORT_STS_LINE_CTS) … … 567 561 if ( (fStsLinesQueried & RTSERIALPORT_STS_LINE_CTS) 568 562 && !(fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_RTS)) 569 RTTestFailed(g_hTest, "CTS line got set when it shouldn't be on iteration %u\n", 570 rc, i); 563 RTTestFailed(g_hTest, "CTS line got set when it shouldn't be on iteration %u\n", i); 571 564 else if ( !(fStsLinesQueried & RTSERIALPORT_STS_LINE_CTS) 572 565 && !(fStsLinesClear & RTSERIALPORT_CHG_STS_LINES_F_RTS)) 573 RTTestFailed(g_hTest, "CTS line got cleared when it shouldn't be on iteration %u\n", 574 rc, i); 566 RTTestFailed(g_hTest, "CTS line got cleared when it shouldn't be on iteration %u\n", i); 575 567 } 576 568 else if ( (fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_RTS) 577 569 || (fStsLinesClear & RTSERIALPORT_CHG_STS_LINES_F_RTS)) 578 RTTestFailed(g_hTest, "CTS line didn't change when it should have on iteration %u\n", 579 rc, i); 570 RTTestFailed(g_hTest, "CTS line didn't change when it should have on iteration %u\n", i); 580 571 581 572 if (RTTestErrorCount(g_hTest) > 0)
Note:
See TracChangeset
for help on using the changeset viewer.