Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: third_party/sqlite/src/test/threadtest2.c

Issue 1610963002: Import SQLite 3.10.2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/sqlite/src/test/tester.tcl ('k') | third_party/sqlite/src/test/threadtest3.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 ** 2004 January 13 2 ** 2004 January 13
3 ** 3 **
4 ** The author disclaims copyright to this source code. In place of 4 ** The author disclaims copyright to this source code. In place of
5 ** a legal notice, here is a blessing: 5 ** a legal notice, here is a blessing:
6 ** 6 **
7 ** May you do good and not evil. 7 ** May you do good and not evil.
8 ** May you find forgiveness for yourself and forgive others. 8 ** May you find forgiveness for yourself and forgive others.
9 ** May you share freely, never taking more than you give. 9 ** May you share freely, never taking more than you give.
10 ** 10 **
(...skipping 25 matching lines...) Expand all
36 /* 36 /*
37 ** Callback from the integrity check. If the result is anything other 37 ** Callback from the integrity check. If the result is anything other
38 ** than "ok" it means the integrity check has failed. Set the "all_stop" 38 ** than "ok" it means the integrity check has failed. Set the "all_stop"
39 ** global variable to stop all other activity. Print the error message 39 ** global variable to stop all other activity. Print the error message
40 ** or print OK if the string "ok" is seen. 40 ** or print OK if the string "ok" is seen.
41 */ 41 */
42 int check_callback(void *pid, int argc, char **argv, char **notUsed2){ 42 int check_callback(void *pid, int argc, char **argv, char **notUsed2){
43 int id = (int)pid; 43 int id = (int)pid;
44 if( strcmp(argv[0],"ok") ){ 44 if( strcmp(argv[0],"ok") ){
45 all_stop = 1; 45 all_stop = 1;
46 fprintf(stderr,"id: %s\n", id, argv[0]); 46 fprintf(stderr,"%d: %s\n", id, argv[0]);
47 }else{ 47 }else{
48 /* fprintf(stderr,"%d: OK\n", id); */ 48 /* fprintf(stderr,"%d: OK\n", id); */
49 } 49 }
50 return 0; 50 return 0;
51 } 51 }
52 52
53 /* 53 /*
54 ** Do an integrity check on the database. If the first integrity check 54 ** Do an integrity check on the database. If the first integrity check
55 ** fails, try it a second time. 55 ** fails, try it a second time.
56 */ 56 */
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 pthread_join(aThread[i], 0); 124 pthread_join(aThread[i], 0);
125 } 125 }
126 if( !all_stop ){ 126 if( !all_stop ){
127 printf("Everything seems ok.\n"); 127 printf("Everything seems ok.\n");
128 return 0; 128 return 0;
129 }else{ 129 }else{
130 printf("We hit an error.\n"); 130 printf("We hit an error.\n");
131 return 1; 131 return 1;
132 } 132 }
133 } 133 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/tester.tcl ('k') | third_party/sqlite/src/test/threadtest3.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698