NS_NewNativeLocalFile requires a full path, under XP_UNIX at least

NOT PART OF THE BUILD


git-svn-id: svn://10.0.0.236/trunk@164077 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%meer.net 2004-10-20 04:10:25 +00:00
parent 95620c22a6
commit fbc8933679

View File

@ -28,6 +28,12 @@ static NS_DEFINE_CID(kmozStorageConnectionCID, MOZ_STORAGE_CONNECTION_CID);
return 0; \
} } while (0)
#ifdef XP_UNIX
#define TEST_DB NS_LITERAL_CSTRING("/tmp/foo.sdb")
#else
#define TEST_DB NS_LITERAL_STRING("foo.sdb")
#endif
int gerr;
nsCString gerrstr;
@ -59,7 +65,7 @@ main (int argc, char **argv)
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<nsILocalFile> f;
rv = NS_NewNativeLocalFile (NS_LITERAL_CSTRING("foo.sdb"), PR_FALSE, getter_AddRefs(f));
rv = NS_NewNativeLocalFile (TEST_DB, PR_FALSE, getter_AddRefs(f));
NS_ENSURE_SUCCESS(rv, rv);
nsCOMPtr<mozIStorageConnection> dbConn;