VirtualBox

Changeset 93491 in vbox for trunk/src


Ignore:
Timestamp:
Jan 31, 2022 9:38:35 AM (3 years ago)
Author:
vboxsync
Message:

Devices/testcases/tstDevice: Quick and dirty testcase to debug individual device SSM loading issues (requires converting the hexdump of the unit from VBox.log to a binary)

Location:
trunk/src/VBox/Devices
Files:
1 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Makefile.kmk

    r93450 r93491  
    14991499        testcase/tstDevicePdmThread.cpp \
    15001500        testcase/tstDeviceSsmFuzz.cpp \
     1501        testcase/tstDeviceSsmLoadDbg.cpp \
    15011502        testcase/tstDeviceIoFuzz.cpp
    15021503 endif
  • trunk/src/VBox/Devices/testcase/tstDevice.cpp

    r93115 r93491  
    996996        /* Register builtin tests. */
    997997        tstDevRegisterTestcase(NULL, &g_TestcaseSsmFuzz);
     998        tstDevRegisterTestcase(NULL, &g_TestcaseSsmLoadDbg);
    998999        tstDevRegisterTestcase(NULL, &g_TestcaseIoFuzz);
    9991000
  • trunk/src/VBox/Devices/testcase/tstDeviceBuiltin.h

    r93115 r93491  
    3030
    3131extern const TSTDEVTESTCASEREG g_TestcaseSsmFuzz;
     32extern const TSTDEVTESTCASEREG g_TestcaseSsmLoadDbg;
    3233extern const TSTDEVTESTCASEREG g_TestcaseIoFuzz;
    3334
  • trunk/src/VBox/Devices/testcase/tstDeviceIoFuzz.cpp

    r93115 r93491  
    142142
    143143                uint64_t u64Value = fRead ? 0 : RTRandAdvU64(hRnd);
    144                 uint32_t cbValue = g_aAccWidths[RTRandAdvU32Ex(hRnd, 0, 2)];
     144                uint32_t cbValue = g_aAccWidths[RTRandAdvU32Ex(hRnd, 0, 3)];
    145145
    146146                if (fRead)
  • trunk/src/VBox/Devices/testcase/tstDevicePdmDevHlp.cpp

    r93115 r93491  
    49434943             pDevIns->pReg->szName, pDevIns->iInstance, uChannel, pfnTransferHandler, pvUser));
    49444944
    4945     int rc = VERR_NOT_IMPLEMENTED;
    4946     AssertFailed();
     4945#ifndef VBOX_TSTDEV_NOT_IMPLEMENTED_STUBS_FAKE_SUCCESS
     4946    int rc = VERR_NOT_IMPLEMENTED;
     4947    AssertFailed();
     4948#else
     4949    int rc = VINF_SUCCESS;
     4950#endif
    49474951
    49484952    LogFlow(("pdmR3DevHlp_DMARegister: caller='%s'/%d: returns %Rrc\n",
     
    49914995             pDevIns->pReg->szName, pDevIns->iInstance, uChannel, uLevel));
    49924996
    4993     int rc = VERR_NOT_IMPLEMENTED;
    4994     AssertFailed();
     4997#ifndef VBOX_TSTDEV_NOT_IMPLEMENTED_STUBS_FAKE_SUCCESS
     4998    int rc = VERR_NOT_IMPLEMENTED;
     4999    AssertFailed();
     5000#else
     5001    int rc = VINF_SUCCESS;
     5002#endif
    49955003
    49965004    LogFlow(("pdmR3DevHlp_DMASetDREQ: caller='%s'/%d: returns %Rrc\n",
  • trunk/src/VBox/Devices/testcase/tstDevicePdmDevHlpR0.cpp

    r93115 r93491  
    2727#define LINUX_VERSION_CODE 0
    2828#define KERNEL_VERSION(a,b,c) 1
     29#include <iprt/linux/version.h>
    2930#include <VBox/types.h>
    3031#include <VBox/version.h>
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