VirtualBox

Changeset 89833 in vbox


Ignore:
Timestamp:
Jun 22, 2021 1:53:36 PM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: Make sure output + temp directories exists in audioTestEnvInit(). bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/utils/audio/vkatCommon.cpp

    r89804 r89833  
    705705        rc = RTPathJoin(pTstEnv->szPathTemp, sizeof(pTstEnv->szPathTemp), szPathTemp, "vkat-temp");
    706706
     707    if (RT_SUCCESS(rc))
     708    {
     709        rc = RTDirCreate(pTstEnv->szPathTemp, RTFS_UNIX_IRWXU, 0 /* fFlags */);
     710        if (rc == VERR_ALREADY_EXISTS)
     711            rc = VINF_SUCCESS;
     712    }
     713
    707714    if (   RT_SUCCESS(rc)
    708715        && !strlen(pTstEnv->szPathOut))
    709716        rc = RTPathJoin(pTstEnv->szPathOut, sizeof(pTstEnv->szPathOut), szPathTemp, "vkat");
     717
     718    if (RT_SUCCESS(rc))
     719    {
     720        rc = RTDirCreate(pTstEnv->szPathOut, RTFS_UNIX_IRWXU, 0 /* fFlags */);
     721        if (rc == VERR_ALREADY_EXISTS)
     722            rc = VINF_SUCCESS;
     723    }
    710724
    711725    if (RT_FAILURE(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