mirror of
https://github.com/sqlite/sqlite.git
synced 2025-12-24 14:17:58 +03:00
Bug-fixes to get the two threadtest C programs working again. (CVS 1756)
FossilOrigin-Name: ffd3312b66e2657c3431eab814aadec254af2403
This commit is contained in:
@@ -96,7 +96,12 @@ int main(int argc, char **argv){
|
||||
int i, rc;
|
||||
pthread_t aThread[5];
|
||||
|
||||
if( strcmp(DB_FILE,":memory:") ) unlink(DB_FILE);
|
||||
if( strcmp(DB_FILE,":memory:") ){
|
||||
char *zJournal = sqlite3_mprintf("%s-journal", DB_FILE);
|
||||
unlink(DB_FILE);
|
||||
unlink(zJournal);
|
||||
free(zJournal);
|
||||
}
|
||||
sqlite3_open(DB_FILE, &db);
|
||||
if( db==0 ){
|
||||
fprintf(stderr,"unable to initialize database\n");
|
||||
|
||||
Reference in New Issue
Block a user