Change unit tests to run without script
runTests now just holds a purely script test example
Test Explorer in VS now works with tests
NB do not use test explorer on purely script based tests.
This commit is contained in:
marauder2k7 2023-07-27 21:02:27 +01:00
parent 3d46cf51d0
commit 5427e941ce
6 changed files with 33 additions and 93 deletions

View file

@ -1017,8 +1017,10 @@ bool Platform::isFile(const char *pFilePath)
// Get file info
struct stat fStat;
if (stat(pFilePath, &fStat) == 0)
if ((fStat.st_mode & S_IFMT) == S_IFREG)
return true;
return true;
if ((fStat.st_mode & S_IFMT) == S_IFREG)
return true;
// Since stat failed see if it exists in a zip file loaded
if (Torque::FS::IsFile(pFilePath))