Skip to content

Commit 0184beb

Browse files
committed
android not able to write in home
1 parent 7879bcc commit 0184beb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/unit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1983,7 +1983,11 @@ sqlite3 *do_create_database (void) {
19831983
}
19841984

19851985
void do_build_database_path (char buf[256], int i, time_t timestamp, int ntest) {
1986+
#ifdef __ANDROID__
1987+
sprintf(buf, "%s/cloudsync-test-%ld-%d-%d.sqlite", ".", timestamp, ntest, i);
1988+
#else
19861989
sprintf(buf, "%s/cloudsync-test-%ld-%d-%d.sqlite", getenv("HOME"), timestamp, ntest, i);
1990+
#endif
19871991
}
19881992

19891993
sqlite3 *do_create_database_file (int i, time_t timestamp, int ntest) {

0 commit comments

Comments
 (0)