Fossil SCM
Merge fork
Commit
3a35ac58bbcd3f611e1b5740b99c6cbeae1713b3
Parent
f8f5a8159ee934f…
4 files changed
+3
-3
+1
-1
+15
-4
+3
-3
+3
-3
| --- src/sqlite3.c | ||
| +++ src/sqlite3.c | ||
| @@ -381,11 +381,11 @@ | ||
| 381 | 381 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 382 | 382 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 383 | 383 | */ |
| 384 | 384 | #define SQLITE_VERSION "3.15.0" |
| 385 | 385 | #define SQLITE_VERSION_NUMBER 3015000 |
| 386 | -#define SQLITE_SOURCE_ID "2016-10-12 18:55:53 443913d582bcd953d85159047541592e2f68ade3" | |
| 386 | +#define SQLITE_SOURCE_ID "2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8" | |
| 387 | 387 | |
| 388 | 388 | /* |
| 389 | 389 | ** CAPI3REF: Run-Time Library Version Numbers |
| 390 | 390 | ** KEYWORDS: sqlite3_version, sqlite3_sourceid |
| 391 | 391 | ** |
| @@ -44715,11 +44715,11 @@ | ||
| 44715 | 44715 | szBulk = pCache->szAlloc * (i64)pcache1.nInitPage; |
| 44716 | 44716 | }else{ |
| 44717 | 44717 | szBulk = -1024 * (i64)pcache1.nInitPage; |
| 44718 | 44718 | } |
| 44719 | 44719 | if( szBulk > pCache->szAlloc*(i64)pCache->nMax ){ |
| 44720 | - szBulk = pCache->szAlloc*pCache->nMax; | |
| 44720 | + szBulk = pCache->szAlloc*(i64)pCache->nMax; | |
| 44721 | 44721 | } |
| 44722 | 44722 | zBulk = pCache->pBulk = sqlite3Malloc( szBulk ); |
| 44723 | 44723 | sqlite3EndBenignMalloc(); |
| 44724 | 44724 | if( zBulk ){ |
| 44725 | 44725 | int nBulk = sqlite3MallocSize(zBulk)/pCache->szAlloc; |
| @@ -195596,11 +195596,11 @@ | ||
| 195596 | 195596 | int nArg, /* Number of args */ |
| 195597 | 195597 | sqlite3_value **apUnused /* Function arguments */ |
| 195598 | 195598 | ){ |
| 195599 | 195599 | assert( nArg==0 ); |
| 195600 | 195600 | UNUSED_PARAM2(nArg, apUnused); |
| 195601 | - sqlite3_result_text(pCtx, "fts5: 2016-10-12 18:55:53 443913d582bcd953d85159047541592e2f68ade3", -1, SQLITE_TRANSIENT); | |
| 195601 | + sqlite3_result_text(pCtx, "fts5: 2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8", -1, SQLITE_TRANSIENT); | |
| 195602 | 195602 | } |
| 195603 | 195603 | |
| 195604 | 195604 | static int fts5Init(sqlite3 *db){ |
| 195605 | 195605 | static const sqlite3_module fts5Mod = { |
| 195606 | 195606 | /* iVersion */ 2, |
| 195607 | 195607 |
| --- src/sqlite3.c | |
| +++ src/sqlite3.c | |
| @@ -381,11 +381,11 @@ | |
| 381 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 382 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 383 | */ |
| 384 | #define SQLITE_VERSION "3.15.0" |
| 385 | #define SQLITE_VERSION_NUMBER 3015000 |
| 386 | #define SQLITE_SOURCE_ID "2016-10-12 18:55:53 443913d582bcd953d85159047541592e2f68ade3" |
| 387 | |
| 388 | /* |
| 389 | ** CAPI3REF: Run-Time Library Version Numbers |
| 390 | ** KEYWORDS: sqlite3_version, sqlite3_sourceid |
| 391 | ** |
| @@ -44715,11 +44715,11 @@ | |
| 44715 | szBulk = pCache->szAlloc * (i64)pcache1.nInitPage; |
| 44716 | }else{ |
| 44717 | szBulk = -1024 * (i64)pcache1.nInitPage; |
| 44718 | } |
| 44719 | if( szBulk > pCache->szAlloc*(i64)pCache->nMax ){ |
| 44720 | szBulk = pCache->szAlloc*pCache->nMax; |
| 44721 | } |
| 44722 | zBulk = pCache->pBulk = sqlite3Malloc( szBulk ); |
| 44723 | sqlite3EndBenignMalloc(); |
| 44724 | if( zBulk ){ |
| 44725 | int nBulk = sqlite3MallocSize(zBulk)/pCache->szAlloc; |
| @@ -195596,11 +195596,11 @@ | |
| 195596 | int nArg, /* Number of args */ |
| 195597 | sqlite3_value **apUnused /* Function arguments */ |
| 195598 | ){ |
| 195599 | assert( nArg==0 ); |
| 195600 | UNUSED_PARAM2(nArg, apUnused); |
| 195601 | sqlite3_result_text(pCtx, "fts5: 2016-10-12 18:55:53 443913d582bcd953d85159047541592e2f68ade3", -1, SQLITE_TRANSIENT); |
| 195602 | } |
| 195603 | |
| 195604 | static int fts5Init(sqlite3 *db){ |
| 195605 | static const sqlite3_module fts5Mod = { |
| 195606 | /* iVersion */ 2, |
| 195607 |
| --- src/sqlite3.c | |
| +++ src/sqlite3.c | |
| @@ -381,11 +381,11 @@ | |
| 381 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 382 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 383 | */ |
| 384 | #define SQLITE_VERSION "3.15.0" |
| 385 | #define SQLITE_VERSION_NUMBER 3015000 |
| 386 | #define SQLITE_SOURCE_ID "2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8" |
| 387 | |
| 388 | /* |
| 389 | ** CAPI3REF: Run-Time Library Version Numbers |
| 390 | ** KEYWORDS: sqlite3_version, sqlite3_sourceid |
| 391 | ** |
| @@ -44715,11 +44715,11 @@ | |
| 44715 | szBulk = pCache->szAlloc * (i64)pcache1.nInitPage; |
| 44716 | }else{ |
| 44717 | szBulk = -1024 * (i64)pcache1.nInitPage; |
| 44718 | } |
| 44719 | if( szBulk > pCache->szAlloc*(i64)pCache->nMax ){ |
| 44720 | szBulk = pCache->szAlloc*(i64)pCache->nMax; |
| 44721 | } |
| 44722 | zBulk = pCache->pBulk = sqlite3Malloc( szBulk ); |
| 44723 | sqlite3EndBenignMalloc(); |
| 44724 | if( zBulk ){ |
| 44725 | int nBulk = sqlite3MallocSize(zBulk)/pCache->szAlloc; |
| @@ -195596,11 +195596,11 @@ | |
| 195596 | int nArg, /* Number of args */ |
| 195597 | sqlite3_value **apUnused /* Function arguments */ |
| 195598 | ){ |
| 195599 | assert( nArg==0 ); |
| 195600 | UNUSED_PARAM2(nArg, apUnused); |
| 195601 | sqlite3_result_text(pCtx, "fts5: 2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8", -1, SQLITE_TRANSIENT); |
| 195602 | } |
| 195603 | |
| 195604 | static int fts5Init(sqlite3 *db){ |
| 195605 | static const sqlite3_module fts5Mod = { |
| 195606 | /* iVersion */ 2, |
| 195607 |
+1
-1
| --- src/sqlite3.h | ||
| +++ src/sqlite3.h | ||
| @@ -121,11 +121,11 @@ | ||
| 121 | 121 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 122 | 122 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 123 | 123 | */ |
| 124 | 124 | #define SQLITE_VERSION "3.15.0" |
| 125 | 125 | #define SQLITE_VERSION_NUMBER 3015000 |
| 126 | -#define SQLITE_SOURCE_ID "2016-10-12 18:55:53 443913d582bcd953d85159047541592e2f68ade3" | |
| 126 | +#define SQLITE_SOURCE_ID "2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8" | |
| 127 | 127 | |
| 128 | 128 | /* |
| 129 | 129 | ** CAPI3REF: Run-Time Library Version Numbers |
| 130 | 130 | ** KEYWORDS: sqlite3_version, sqlite3_sourceid |
| 131 | 131 | ** |
| 132 | 132 |
| --- src/sqlite3.h | |
| +++ src/sqlite3.h | |
| @@ -121,11 +121,11 @@ | |
| 121 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 122 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 123 | */ |
| 124 | #define SQLITE_VERSION "3.15.0" |
| 125 | #define SQLITE_VERSION_NUMBER 3015000 |
| 126 | #define SQLITE_SOURCE_ID "2016-10-12 18:55:53 443913d582bcd953d85159047541592e2f68ade3" |
| 127 | |
| 128 | /* |
| 129 | ** CAPI3REF: Run-Time Library Version Numbers |
| 130 | ** KEYWORDS: sqlite3_version, sqlite3_sourceid |
| 131 | ** |
| 132 |
| --- src/sqlite3.h | |
| +++ src/sqlite3.h | |
| @@ -121,11 +121,11 @@ | |
| 121 | ** [sqlite3_libversion_number()], [sqlite3_sourceid()], |
| 122 | ** [sqlite_version()] and [sqlite_source_id()]. |
| 123 | */ |
| 124 | #define SQLITE_VERSION "3.15.0" |
| 125 | #define SQLITE_VERSION_NUMBER 3015000 |
| 126 | #define SQLITE_SOURCE_ID "2016-10-14 10:20:30 707875582fcba352b4906a595ad89198d84711d8" |
| 127 | |
| 128 | /* |
| 129 | ** CAPI3REF: Run-Time Library Version Numbers |
| 130 | ** KEYWORDS: sqlite3_version, sqlite3_sourceid |
| 131 | ** |
| 132 |
+15
-4
| --- test/tester.tcl | ||
| +++ test/tester.tcl | ||
| @@ -749,30 +749,41 @@ | ||
| 749 | 749 | } |
| 750 | 750 | return [string range $out 1 end] |
| 751 | 751 | } |
| 752 | 752 | |
| 753 | 753 | # This procedure executes the "fossil server" command. The return value |
| 754 | -# is the new process identifier. The varName argument refers to a variable | |
| 754 | +# is a list comprised of the new process identifier and the port on which | |
| 755 | +# the server started. The varName argument refers to a variable | |
| 755 | 756 | # where the "stop argument" is to be stored. This value must eventually be |
| 756 | 757 | # passed to the [test_stop_server] procedure. |
| 757 | 758 | proc test_start_server { repository {varName ""} } { |
| 758 | - global fossilexe | |
| 759 | + global fossilexe tempPath | |
| 759 | 760 | set command [list exec $fossilexe server] |
| 760 | 761 | if {[string length $varName] > 0} { |
| 761 | 762 | upvar 1 $varName stopArg |
| 762 | 763 | } |
| 763 | 764 | if {$::tcl_platform(platform) eq "windows"} { |
| 764 | 765 | set stopArg [file join [getTemporaryPath] [appendArgs \ |
| 765 | 766 | [string trim [clock seconds] -] _ [getSeqNo] .stopper]] |
| 766 | 767 | lappend command --stopper $stopArg |
| 767 | 768 | } |
| 768 | - lappend command $repository & | |
| 769 | + set outFileName [file join $tempPath [appendArgs \ | |
| 770 | + fossil_server_ [string trim [clock seconds] -] _ \ | |
| 771 | + [getSeqNo]]].out | |
| 772 | + lappend command $repository >&$outFileName & | |
| 769 | 773 | set pid [eval $command] |
| 770 | 774 | if {$::tcl_platform(platform) ne "windows"} { |
| 771 | 775 | set stopArg $pid |
| 772 | 776 | } |
| 773 | - return $pid | |
| 777 | + after 1000; # output might not be there yet | |
| 778 | + set output [read_file $outFileName] | |
| 779 | + catch {file delete $outFileName} | |
| 780 | + if {![regexp {Listening.*TCP port (\d+)} $output dummy port]} { | |
| 781 | + puts stdout "Could not detect Fossil server port, using default..." | |
| 782 | + set port 8080; # return the default port just in case | |
| 783 | + } | |
| 784 | + return [list $pid $port] | |
| 774 | 785 | } |
| 775 | 786 | |
| 776 | 787 | # This procedure stops a Fossil server instance that was previously started |
| 777 | 788 | # by the [test_start_server] procedure. The value of the "stop argument" |
| 778 | 789 | # will vary by platform as will the exact method used to stop the server. |
| 779 | 790 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -749,30 +749,41 @@ | |
| 749 | } |
| 750 | return [string range $out 1 end] |
| 751 | } |
| 752 | |
| 753 | # This procedure executes the "fossil server" command. The return value |
| 754 | # is the new process identifier. The varName argument refers to a variable |
| 755 | # where the "stop argument" is to be stored. This value must eventually be |
| 756 | # passed to the [test_stop_server] procedure. |
| 757 | proc test_start_server { repository {varName ""} } { |
| 758 | global fossilexe |
| 759 | set command [list exec $fossilexe server] |
| 760 | if {[string length $varName] > 0} { |
| 761 | upvar 1 $varName stopArg |
| 762 | } |
| 763 | if {$::tcl_platform(platform) eq "windows"} { |
| 764 | set stopArg [file join [getTemporaryPath] [appendArgs \ |
| 765 | [string trim [clock seconds] -] _ [getSeqNo] .stopper]] |
| 766 | lappend command --stopper $stopArg |
| 767 | } |
| 768 | lappend command $repository & |
| 769 | set pid [eval $command] |
| 770 | if {$::tcl_platform(platform) ne "windows"} { |
| 771 | set stopArg $pid |
| 772 | } |
| 773 | return $pid |
| 774 | } |
| 775 | |
| 776 | # This procedure stops a Fossil server instance that was previously started |
| 777 | # by the [test_start_server] procedure. The value of the "stop argument" |
| 778 | # will vary by platform as will the exact method used to stop the server. |
| 779 |
| --- test/tester.tcl | |
| +++ test/tester.tcl | |
| @@ -749,30 +749,41 @@ | |
| 749 | } |
| 750 | return [string range $out 1 end] |
| 751 | } |
| 752 | |
| 753 | # This procedure executes the "fossil server" command. The return value |
| 754 | # is a list comprised of the new process identifier and the port on which |
| 755 | # the server started. The varName argument refers to a variable |
| 756 | # where the "stop argument" is to be stored. This value must eventually be |
| 757 | # passed to the [test_stop_server] procedure. |
| 758 | proc test_start_server { repository {varName ""} } { |
| 759 | global fossilexe tempPath |
| 760 | set command [list exec $fossilexe server] |
| 761 | if {[string length $varName] > 0} { |
| 762 | upvar 1 $varName stopArg |
| 763 | } |
| 764 | if {$::tcl_platform(platform) eq "windows"} { |
| 765 | set stopArg [file join [getTemporaryPath] [appendArgs \ |
| 766 | [string trim [clock seconds] -] _ [getSeqNo] .stopper]] |
| 767 | lappend command --stopper $stopArg |
| 768 | } |
| 769 | set outFileName [file join $tempPath [appendArgs \ |
| 770 | fossil_server_ [string trim [clock seconds] -] _ \ |
| 771 | [getSeqNo]]].out |
| 772 | lappend command $repository >&$outFileName & |
| 773 | set pid [eval $command] |
| 774 | if {$::tcl_platform(platform) ne "windows"} { |
| 775 | set stopArg $pid |
| 776 | } |
| 777 | after 1000; # output might not be there yet |
| 778 | set output [read_file $outFileName] |
| 779 | catch {file delete $outFileName} |
| 780 | if {![regexp {Listening.*TCP port (\d+)} $output dummy port]} { |
| 781 | puts stdout "Could not detect Fossil server port, using default..." |
| 782 | set port 8080; # return the default port just in case |
| 783 | } |
| 784 | return [list $pid $port] |
| 785 | } |
| 786 | |
| 787 | # This procedure stops a Fossil server instance that was previously started |
| 788 | # by the [test_start_server] procedure. The value of the "stop argument" |
| 789 | # will vary by platform as will the exact method used to stop the server. |
| 790 |
+3
-3
| --- test/unversioned.test | ||
| +++ test/unversioned.test | ||
| @@ -305,19 +305,19 @@ | ||
| 305 | 305 | unversioned5\.txt$} [normalize_result]]} |
| 306 | 306 | |
| 307 | 307 | ############################################################################### |
| 308 | 308 | |
| 309 | 309 | set password [string trim [clock seconds] -] |
| 310 | -set remote [appendArgs http://uvtester: $password @localhost:8080/] | |
| 311 | 310 | |
| 312 | 311 | fossil user new uvtester "Unversioned Test User" $password |
| 313 | 312 | fossil user capabilities uvtester oy |
| 314 | 313 | |
| 315 | 314 | ############################################################################### |
| 316 | 315 | |
| 317 | -set pid [test_start_server $repository stopArg] | |
| 318 | -puts [appendArgs "Started Fossil server, pid \"" $pid \".] | |
| 316 | +foreach {pid port} [test_start_server $repository stopArg] {} | |
| 317 | +puts [appendArgs "Started Fossil server, pid \"" $pid \" ", port \"" $port \".] | |
| 318 | +set remote [appendArgs http://uvtester: $password @localhost: $port /] | |
| 319 | 319 | |
| 320 | 320 | ############################################################################### |
| 321 | 321 | |
| 322 | 322 | set clientDir [file join $tempPath [appendArgs \ |
| 323 | 323 | uvtest_ [string trim [clock seconds] -] _ [getSeqNo]]] |
| 324 | 324 |
| --- test/unversioned.test | |
| +++ test/unversioned.test | |
| @@ -305,19 +305,19 @@ | |
| 305 | unversioned5\.txt$} [normalize_result]]} |
| 306 | |
| 307 | ############################################################################### |
| 308 | |
| 309 | set password [string trim [clock seconds] -] |
| 310 | set remote [appendArgs http://uvtester: $password @localhost:8080/] |
| 311 | |
| 312 | fossil user new uvtester "Unversioned Test User" $password |
| 313 | fossil user capabilities uvtester oy |
| 314 | |
| 315 | ############################################################################### |
| 316 | |
| 317 | set pid [test_start_server $repository stopArg] |
| 318 | puts [appendArgs "Started Fossil server, pid \"" $pid \".] |
| 319 | |
| 320 | ############################################################################### |
| 321 | |
| 322 | set clientDir [file join $tempPath [appendArgs \ |
| 323 | uvtest_ [string trim [clock seconds] -] _ [getSeqNo]]] |
| 324 |
| --- test/unversioned.test | |
| +++ test/unversioned.test | |
| @@ -305,19 +305,19 @@ | |
| 305 | unversioned5\.txt$} [normalize_result]]} |
| 306 | |
| 307 | ############################################################################### |
| 308 | |
| 309 | set password [string trim [clock seconds] -] |
| 310 | |
| 311 | fossil user new uvtester "Unversioned Test User" $password |
| 312 | fossil user capabilities uvtester oy |
| 313 | |
| 314 | ############################################################################### |
| 315 | |
| 316 | foreach {pid port} [test_start_server $repository stopArg] {} |
| 317 | puts [appendArgs "Started Fossil server, pid \"" $pid \" ", port \"" $port \".] |
| 318 | set remote [appendArgs http://uvtester: $password @localhost: $port /] |
| 319 | |
| 320 | ############################################################################### |
| 321 | |
| 322 | set clientDir [file join $tempPath [appendArgs \ |
| 323 | uvtest_ [string trim [clock seconds] -] _ [getSeqNo]]] |
| 324 |