VirtualBox

Changeset 61789 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jun 21, 2016 1:03:28 PM (9 years ago)
Author:
vboxsync
Message:

tstVMMR0CallHost-1: Check two long jumps after another

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/testcase/tstVMMR0CallHost-1.cpp

    r57358 r61789  
    7575#endif
    7676
    77     /* Do long jmps every 7th time */
    78     if ((i % 7) == 0)
     77    /* Twice in a row, every 7th time. */
     78    if ((i % 7) <= 1)
    7979    {
    8080        g_cJmps++;
     
    9393    RTTESTI_CHECK_MSG_RET(i >= 0 && i <= 8192, ("i=%d is out of range [0..8192]\n", i),      1);
    9494    RTTESTI_CHECK_MSG_RET(i2 == 0,             ("i2=%d is out of range [0]\n", i2),          1);
    95     int iExpect = (i % 7) == 0 ? i + 10000 : i;
     95    int iExpect = (i % 7) <= 1 ? i + 10000 : i;
    9696    int rc = foo(i, 0, -1);
    9797    RTTESTI_CHECK_MSG_RET(rc == iExpect,       ("i=%d rc=%d expected=%d\n", i, rc, iExpect), 1);
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