VirtualBox

Ignore:
Timestamp:
Aug 6, 2021 12:28:55 PM (3 years ago)
Author:
vboxsync
Message:

Audio/ValKit: More fixes for tstAudioTestService. ​bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Audio/testcase/tstAudioTestService.cpp

    r90518 r90544  
    127127        if (RT_SUCCESS(rc))
    128128        {
    129             char szFile[RTPATH_MAX];
    130             rc = RTPathJoin(szFile, sizeof(szFile), szTemp, "tstAudioTestService");
    131             RTTEST_CHECK_RC_OK(hTest, rc);
     129            char szName[RTPATH_MAX];
     130            RTTESTI_CHECK_RC(rc = RTStrCopy(szName, sizeof(szName), szTemp), VINF_SUCCESS);
     131            RTTESTI_CHECK_RC(rc = RTPathAppend(szName, sizeof(szName), "tstAudioTestService-XXXXX"), VINF_SUCCESS);
    132132            if (RT_SUCCESS(rc))
    133133            {
    134                 rc = AudioTestSvcClientTestSetDownload(&Client, "ignored", szFile);
     134                rc = AudioTestSvcClientTestSetDownload(&Client, "ignored", szName);
    135135                RTTEST_CHECK_RC_OK(hTest, rc);
     136
     137                /* ignore rc */ RTFileDelete(szName);
    136138            }
    137 
    138             rc = RTFileDelete(szFile);
    139             RTTEST_CHECK_RC_OK(hTest, rc);
    140139        }
    141140    }
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