VirtualBox

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


Ignore:
Timestamp:
Feb 5, 2024 10:57:43 AM (12 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
161465
Message:

ValKit/TestBoxHelper.cpp: longmode -> 64bitguest. [build fix] bugref:10592

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testboxscript/TestBoxHelper.cpp

    r103196 r103198  
    551551
    552552typedef enum { HWVIRTTYPE_NONE, HWVIRTTYPE_VTX, HWVIRTTYPE_AMDV, HVIRTTYPE_ARMV8 } HWVIRTTYPE;
    553 static HWVIRTTYPE isHwVirtSupported(void)
     553static HWVIRTTYPE getHwVirtSupport(void)
    554554{
    555555    /* No native virtualization supported on macOS anymore (for the VBox versions we care about). */
     
    585585{
    586586    NOREF(argc); NOREF(argv);
    587     int cch = RTPrintf(isHwVirtSupported() != HWVIRTTYPE_NONE ? "true\n" : "false\n");
     587    int cch = RTPrintf(getHwVirtSupport() != HWVIRTTYPE_NONE ? "true\n" : "false\n");
    588588    return cch > 0 ? RTEXITCODE_SUCCESS : RTEXITCODE_FAILURE;
    589589}
     
    595595{
    596596    NOREF(argc); NOREF(argv);
    597     int         fSupported = -1;
    598 
    599     HWVIRTTYPE  enmHwVirt  = isHwVirtSupported();
     597    int               fSupported = -1;
     598
     599    HWVIRTTYPE  const enmHwVirt  = getHwVirtSupport();
    600600    if (enmHwVirt == HWVIRTTYPE_NONE)
    601601        fSupported = 0;
     
    673673{
    674674    NOREF(argc); NOREF(argv);
    675     int fSupported = 0;
    676 
    677     if (   isHwVirtSupported() != HWVIRTTYPE_NONE
     675    int              fSupported    = 0;
     676
     677    HWVIRTTYPE const enmHwVirt = getHwVirtSupport();
     678    if (   enmHwVirt != HWVIRTTYPE_NONE
    678679        || isNativeApiSupported())
    679680    {
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