Changeset 91119 in vbox for trunk/src/VBox/ValidationKit/utils/audio
- Timestamp:
- Sep 6, 2021 9:35:26 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/utils/audio/vkat.cpp
r91088 r91119 670 670 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Verification skipped\n"); 671 671 672 RTFileDelete(pTstEnv->u.Host.szPathTestSetGuest); 673 RTFileDelete(pTstEnv->u.Host.szPathTestSetValKit); 672 if (!pTstEnv->fSkipVerify) 673 { 674 RTFileDelete(pTstEnv->u.Host.szPathTestSetGuest); 675 RTFileDelete(pTstEnv->u.Host.szPathTestSetValKit); 676 } 677 else 678 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Leaving test set files behind\n"); 674 679 } 675 680 } … … 750 755 int rc; 751 756 752 const char *pszTag = NULL; /* Custom tag to use. Can be NULL if not being used. */753 757 PCPDMDRVREG pDrvReg = AudioTestGetDefaultBackend(); 754 758 bool fWithDrvAudio = false; … … 862 866 863 867 case VKAT_TEST_OPT_TAG: 864 pszTag = ValueUnion.psz; 868 rc = RTStrCopy(TstEnv.szTag, sizeof(TstEnv.szTag), ValueUnion.psz); 869 if (RT_FAILURE(rc)) 870 return RTMsgErrorExit(RTEXITCODE_FAILURE, "Tag invalid, rc=%Rrc", rc); 865 871 break; 866 872 … … 978 984 979 985 const bool fPacked = AudioTestSetIsPacked(pszPathSet); 986 980 987 if (fPacked) 981 988 { 982 989 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test set is an archive and needs to be unpacked\n"); 983 990 984 char szPathTemp[RTPATH_MAX]; 985 rc = RTPathTemp(szPathTemp, sizeof(szPathTemp)); 991 if (!RTFileExists(pszPathSet)) 992 { 993 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Test set '%s' does not exist\n", pszPathSet); 994 rc = VERR_FILE_NOT_FOUND; 995 } 996 else 997 rc = VINF_SUCCESS; 998 986 999 if (RT_SUCCESS(rc)) 987 1000 { 988 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Using temporary directory '%s'\n", szPathTemp); 989 990 rc = RTPathJoin(szPathExtracted, sizeof(szPathExtracted), szPathTemp, "vkat-testset-XXXX"); 1001 char szPathTemp[RTPATH_MAX]; 1002 rc = RTPathTemp(szPathTemp, sizeof(szPathTemp)); 991 1003 if (RT_SUCCESS(rc)) 992 1004 { 993 rc = RTDirCreateTemp(szPathExtracted, 0755); 1005 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Using temporary directory '%s'\n", szPathTemp); 1006 1007 rc = RTPathJoin(szPathExtracted, sizeof(szPathExtracted), szPathTemp, "vkat-testset-XXXX"); 994 1008 if (RT_SUCCESS(rc)) 995 1009 { 996 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Unpacking archive to '%s'\n", szPathExtracted); 997 rc = AudioTestSetUnpack(pszPathSet, szPathExtracted); 1010 rc = RTDirCreateTemp(szPathExtracted, 0755); 998 1011 if (RT_SUCCESS(rc)) 999 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Archive successfully unpacked\n"); 1012 { 1013 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Unpacking archive to '%s'\n", szPathExtracted); 1014 rc = AudioTestSetUnpack(pszPathSet, szPathExtracted); 1015 if (RT_SUCCESS(rc)) 1016 RTTestPrintf(g_hTest, RTTESTLVL_ALWAYS, "Archive successfully unpacked\n"); 1017 } 1000 1018 } 1001 1019 }
Note:
See TracChangeset
for help on using the changeset viewer.