1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-12 13:01:09 +03:00

Support running the fstree tests in 'vtabH.test' on Windows when not using the system drive.

FossilOrigin-Name: 3680f95ff34fdcf6a18a99268678a56e4be5a023
This commit is contained in:
mistachkin
2016-08-26 01:17:12 +00:00
parent f10122d535
commit 7dd7d98bbf
6 changed files with 75 additions and 15 deletions

View File

@@ -499,9 +499,13 @@ static int fstreeFilter(
char aWild[2] = { '\0', '\0' };
#if SQLITE_OS_WIN
zRoot = sqlite3_mprintf("%s%c", getenv("SystemDrive"), '/');
const char *zDrive = windirent_getenv("fstreeDrive");
if( zDrive==0 ){
zDrive = windirent_getenv("SystemDrive");
}
zRoot = sqlite3_mprintf("%s%c", zDrive, '/');
nRoot = sqlite3Strlen30(zRoot);
zPrefix = sqlite3_mprintf("%s", getenv("SystemDrive"));
zPrefix = sqlite3_mprintf("%s", zDrive);
nPrefix = sqlite3Strlen30(zPrefix);
#else
zRoot = "/";