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

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

Issue 2751253002: [sql] Import SQLite 3.17.0. (Closed)
Patch Set: also clang on Linux i386 Created 3 years, 9 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/time-wordcount.sh » ('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 ** 2010-07-22 2 ** 2010-07-22
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 862 matching lines...) Expand 10 before | Expand all | Expand 10 after
873 873
874 /* 874 /*
875 ** Used by setstoptime() and timetostop(). 875 ** Used by setstoptime() and timetostop().
876 */ 876 */
877 static double timelimit = 0.0; 877 static double timelimit = 0.0;
878 878
879 static double currentTime(void){ 879 static double currentTime(void){
880 double t; 880 double t;
881 static sqlite3_vfs *pTimelimitVfs = 0; 881 static sqlite3_vfs *pTimelimitVfs = 0;
882 if( pTimelimitVfs==0 ) pTimelimitVfs = sqlite3_vfs_find(0); 882 if( pTimelimitVfs==0 ) pTimelimitVfs = sqlite3_vfs_find(0);
883 if( pTimelimitVfs->iVersion>=1 && pTimelimitVfs->xCurrentTimeInt64!=0 ){ 883 if( pTimelimitVfs->iVersion>=2 && pTimelimitVfs->xCurrentTimeInt64!=0 ){
884 sqlite3_int64 tm; 884 sqlite3_int64 tm;
885 pTimelimitVfs->xCurrentTimeInt64(pTimelimitVfs, &tm); 885 pTimelimitVfs->xCurrentTimeInt64(pTimelimitVfs, &tm);
886 t = tm/86400000.0; 886 t = tm/86400000.0;
887 }else{ 887 }else{
888 pTimelimitVfs->xCurrentTime(pTimelimitVfs, &t); 888 pTimelimitVfs->xCurrentTime(pTimelimitVfs, &t);
889 } 889 }
890 return t; 890 return t;
891 } 891 }
892 892
893 static void setstoptime_x( 893 static void setstoptime_x(
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
1514 1514
1515 usage: 1515 usage:
1516 printf("Usage: %s [-multiplexor] [testname|testprefix*]...\n", argv[0]); 1516 printf("Usage: %s [-multiplexor] [testname|testprefix*]...\n", argv[0]);
1517 printf("Available tests are:\n"); 1517 printf("Available tests are:\n");
1518 for(i=0; i<sizeof(aTest)/sizeof(aTest[0]); i++){ 1518 for(i=0; i<sizeof(aTest)/sizeof(aTest[0]); i++){
1519 printf(" %s\n", aTest[i].zTest); 1519 printf(" %s\n", aTest[i].zTest);
1520 } 1520 }
1521 1521
1522 return 254; 1522 return 254;
1523 } 1523 }
OLDNEW
« no previous file with comments | « third_party/sqlite/src/test/tester.tcl ('k') | third_party/sqlite/src/test/time-wordcount.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698