VirtualBox

Ignore:
Timestamp:
Nov 26, 2021 9:53:47 PM (3 years ago)
Author:
vboxsync
Message:

SUP,IPRT,++: Adding SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED and SUPR3INIT_F_DRIVERLESS_NEM_FALLBACK to SUPLib and RTR3INIT_FLAGS_TRY_SUPLIB to RTR3Init*, the latter probably reflects the actual state there a lot better. Currently only the TRY_SUPLIB option works, the other two aren't really implemented in SUPLib yet. bugref:10138

Location:
trunk/src/VBox/HostDrivers/Support/testcase
Files:
5 edited

Legend:

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

    r82968 r92613  
    5959int main(int argc, char **argv)
    6060{
    61     RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
     61    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB);
    6262
    6363    /*
     
    151151
    152152    /*
    153      * Do the requested job.
     153     * Make sure the support library is initialized.
    154154     */
    155     int rc;
    156     switch (enmWhat)
     155    int rc = SUPR3Init(NULL /*ppSession*/);
     156    if (RT_SUCCESS(rc))
    157157    {
    158         case kSupLoggerCtl_Set:
    159             rc = SUPR3LoggerSettings(enmWhich, pszFlags, pszGroups, pszDest);
    160             break;
    161         case kSupLoggerCtl_Create:
    162             rc = SUPR3LoggerCreate(enmWhich, pszFlags, pszGroups, pszDest);
    163             break;
    164         case kSupLoggerCtl_Destroy:
    165             rc = SUPR3LoggerDestroy(enmWhich);
    166             break;
    167         default:
    168             rc = VERR_INTERNAL_ERROR;
    169             break;
     158        /*
     159         * Do the requested job.
     160         */
     161        switch (enmWhat)
     162        {
     163            case kSupLoggerCtl_Set:
     164                rc = SUPR3LoggerSettings(enmWhich, pszFlags, pszGroups, pszDest);
     165                break;
     166            case kSupLoggerCtl_Create:
     167                rc = SUPR3LoggerCreate(enmWhich, pszFlags, pszGroups, pszDest);
     168                break;
     169            case kSupLoggerCtl_Destroy:
     170                rc = SUPR3LoggerDestroy(enmWhich);
     171                break;
     172            default:
     173                rc = VERR_INTERNAL_ERROR;
     174                break;
     175        }
     176        if (RT_SUCCESS(rc))
     177            RTPrintf("SUPLoggerCtl: Success\n");
     178        else
     179            RTStrmPrintf(g_pStdErr, "SUPLoggerCtl: error: rc=%Rrc\n", rc);
    170180    }
    171     if (RT_SUCCESS(rc))
    172         RTPrintf("SUPLoggerCtl: Success\n");
    173181    else
    174         RTStrmPrintf(g_pStdErr, "SUPLoggerCtl: error: rc=%Rrc\n", rc);
     182        RTStrmPrintf(g_pStdErr, "SUPR3Init: error: rc=%Rrc\n", rc);
    175183
    176184    return RT_SUCCESS(rc) ? 0 : 1;
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPage.cpp

    r92556 r92613  
    4040    int cErrors = 0;
    4141
    42     RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
     42    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB);
    4343    int rc = SUPR3Init(NULL);
    4444    cErrors += rc != 0;
  • trunk/src/VBox/HostDrivers/Support/testcase/tstPin.cpp

    r92556 r92613  
    4646    RTHCPHYS    HCPhys;
    4747
    48     RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
     48    RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB);
    4949    rc = SUPR3Init(NULL);
    5050    RTPrintf("SUPR3Init -> rc=%d\n", rc);
  • trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem-Zombie.cpp

    r86397 r92613  
    9595     * Init.
    9696     */
    97     int rc = RTR3InitExeNoArguments(RTR3INIT_FLAGS_SUPLIB);
     97    int rc = RTR3InitExeNoArguments(RTR3INIT_FLAGS_TRY_SUPLIB);
    9898    if (RT_FAILURE(rc))
    9999    {
  • trunk/src/VBox/HostDrivers/Support/testcase/tstSupSem.cpp

    r82968 r92613  
    8080     * Init.
    8181     */
    82     int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
     82    int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB);
    8383    if (RT_FAILURE(rc))
    8484        return RTMsgInitFailure(rc);
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