Bug 906734 - Put TestHarness.h profile directories under runcppunittest's temp directory. r=Waldo

This commit is contained in:
Ted Mielczarek 2013-08-20 11:59:51 -04:00
parent 4a03bbb49e
commit d0e6cfab67

View File

@ -164,8 +164,10 @@ class ScopedXPCOM : public nsIDirectoryServiceProvider2
}
// Create a unique temporary folder to use for this test.
// Note that runcppunittests.py will run tests with a temp
// directory as the cwd, so just put something under that.
nsCOMPtr<nsIFile> profD;
nsresult rv = NS_GetSpecialDirectory(NS_OS_TEMP_DIR,
nsresult rv = NS_GetSpecialDirectory(NS_OS_CURRENT_PROCESS_DIR,
getter_AddRefs(profD));
NS_ENSURE_SUCCESS(rv, nullptr);