VirtualBox

Changeset 60096 in vbox


Ignore:
Timestamp:
Mar 18, 2016 1:13:44 PM (9 years ago)
Author:
vboxsync
Message:

VMMDev: Added VMMDEV_TESTING_CMD_PRINT for more output on the host.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VMMDevTesting.h

    r59862 r60096  
    9090 * "value-name:register-name". */
    9191#define VMMDEV_TESTING_CMD_VALUE_REG    UINT32_C(0xcab1e007)
     92/** Print string, sending a string including newline. (RTTestPrintf) */
     93#define VMMDEV_TESTING_CMD_PRINT        UINT32_C(0xcab1e008)
    9294/** @} */
    9395
  • trunk/src/VBox/Devices/VMMDev/VMMDevTesting.cpp

    r57358 r60096  
    265265                case VMMDEV_TESTING_CMD_FAILED:
    266266                case VMMDEV_TESTING_CMD_SKIPPED:
     267                case VMMDEV_TESTING_CMD_PRINT:
    267268                    if (   off < sizeof(pThis->TestingData.String.sz) - 1
    268269                        && cb == 1)
     
    307308                                    VMMDEV_TESTING_OUTPUT(("testing: SKIPPED '%s'\n", pThis->TestingData.String.sz));
    308309                                    break;
     310                                case VMMDEV_TESTING_CMD_PRINT:
     311                                    if (pThis->hTestingTest != NIL_RTTEST && off)
     312                                        RTTestPrintf(pThis->hTestingTest, RTTESTLVL_ALWAYS, "%s", pThis->TestingData.String.sz);
     313                                    VMMDEV_TESTING_OUTPUT(("testing: '%s'\n", pThis->TestingData.String.sz));
     314                                    break;
    309315                            }
    310316#else
     
    405411
    406412                /*
    407                  * RTTestValue with the return from DBGFR3RegNmQuery.
     413                 * RTTestValue with the output from DBGFR3RegNmQuery.
    408414                 */
    409415                case VMMDEV_TESTING_CMD_VALUE_REG:
     
    424430                    }
    425431                    break;
    426 
    427432                }
    428433
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