Testsuite cleanups and improvements.

Add ctest support.
Add FileSystem::changeDirectory method.
This commit is contained in:
castano
2009-03-14 07:27:25 +00:00
parent 4a34c673a4
commit ab73c790e1
6 changed files with 87 additions and 21 deletions

View File

@ -45,3 +45,11 @@ bool FileSystem::createDirectory(const char * path)
#endif
}
bool FileSystem::changeDirectory(const char * path)
{
#if NV_OS_WIN32
return _chdir(path) != -1;
#else
return chdir(path) != -1;
#endif
}

View File

@ -13,6 +13,7 @@ namespace nv
NVCORE_API bool exists(const char * path);
NVCORE_API bool createDirectory(const char * path);
NVCORE_API bool changeDirectory(const char * path);
} // FileSystem namespace