VirtualBox

Ignore:
Timestamp:
May 16, 2023 9:11:55 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
157453
Message:

HostDrivers/Support/testcase/tstPin,
ValidationKit/tests/unittests/tdUnitTest1.py: Addressed several
Solaris-specific unit test failures. tstPin and tstContiguous both
attempt to allocate kernel memory with a contiguous physical backing
below 4GB for running code (RTR0MemObjAllocCont() with fExecutable=true)
but this isn't implemented on Solaris. tstLow attempts to allocate
kernel memory with a physical backing below 4GB for running code
(RTR0MemObjAllocLow() with fExecutable=true) which isn't implemented on
Solaris. tstPDMQueue attempts to run driverless, i.e. without the
support driver (vboxdrv), which isn't supported on Solaris. tstPin
exercises other memory operations so the fix simply #ifdef's out the
RTR0MemObjAllocCont() request for Solaris. For the rest of the tests we
update tdUnitTest1.py to move them to the kdTestCasesBuggyPerOs list to
mark them as known to be not applicable at this time and also to not
count their expected failures as part of the final results tally.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp

    r99461 r99818  
    153153
    154154
     155/* Support for allocating Ring-0 executable memory with contiguous physical backing isn't implemented on Solaris. */
     156#if !defined(RT_OS_SOLARIS)
    155157    /*
    156158     * Allocate a bit of contiguous memory.
     
    184186
    185187    RTTestISubDone();
     188#endif
    186189
    187190    /*
     
    192195    #define BIG_SIZE    72*1024*1024
    193196    #define BIG_SIZEPP  (BIG_SIZE + PAGE_SIZE)
     197#if defined(RT_OS_SOLARIS)
     198    size_t cPages = RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT;
     199#endif
    194200    pv     = NULL;
    195201    cPages = BIG_SIZEPP >> PAGE_SHIFT;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette