VirtualBox

Changeset 70982 in vbox for trunk/src/VBox/ValidationKit


Ignore:
Timestamp:
Feb 13, 2018 9:04:08 AM (7 years ago)
Author:
vboxsync
Message:

ValidationKit/SerialTest: Implement status line monitoring testing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/serial/SerialTest.cpp

    r70981 r70982  
    533533                            if (   (fStsLinesQueried & RTSERIALPORT_STS_LINE_DSR)
    534534                                && !(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);
    537536                            else if (   !(fStsLinesQueried & RTSERIALPORT_STS_LINE_DSR)
    538537                                     && !(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);
    541539                        }
    542540                        else if (   (fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_DTR)
    543541                                 || (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);
    546543
    547544                        if (   (fStsLinesQueried & RTSERIALPORT_STS_LINE_DCD)
     
    550547                            if (   (fStsLinesQueried & RTSERIALPORT_STS_LINE_DCD)
    551548                                && !(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);
    554550                            else if (   !(fStsLinesQueried & RTSERIALPORT_STS_LINE_DCD)
    555551                                     && !(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);
    558553                        }
    559554                        else if (   (fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_DTR)
    560555                                 || (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);
    563557
    564558                        if (   (fStsLinesQueried & RTSERIALPORT_STS_LINE_CTS)
     
    567561                            if (   (fStsLinesQueried & RTSERIALPORT_STS_LINE_CTS)
    568562                                && !(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);
    571564                            else if (   !(fStsLinesQueried & RTSERIALPORT_STS_LINE_CTS)
    572565                                     && !(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);
    575567                        }
    576568                        else if (   (fStsLinesSet & RTSERIALPORT_CHG_STS_LINES_F_RTS)
    577569                                 || (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);
    580571
    581572                        if (RTTestErrorCount(g_hTest) > 0)
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