Fossil SCM

Allow fossil to be used together with SQLite 3.8.2 amalgamation. Add UTF16-be file for test-purposes. Disable (3-way) merge2 tests which use UTF16 files: 3-way merges with UTF16 files is not (yet) implemented.

jan.nijtmans 2014-01-20 13:08 trunk
Commit 7e9633a9b3f086c5adec9c2afd085038164cd16e
--- src/report.c
+++ src/report.c
@@ -22,10 +22,14 @@
2222
#include "report.h"
2323
#include <assert.h>
2424
2525
/* Forward references to static routines */
2626
static void report_format_hints(void);
27
+
28
+#ifndef SQLITE_RECURSIVE
29
+# define SQLITE_RECURSIVE 33
30
+#endif
2731
2832
/*
2933
** WEBPAGE: /reportlist
3034
*/
3135
void view_list(void){
3236
--- src/report.c
+++ src/report.c
@@ -22,10 +22,14 @@
22 #include "report.h"
23 #include <assert.h>
24
25 /* Forward references to static routines */
26 static void report_format_hints(void);
 
 
 
 
27
28 /*
29 ** WEBPAGE: /reportlist
30 */
31 void view_list(void){
32
--- src/report.c
+++ src/report.c
@@ -22,10 +22,14 @@
22 #include "report.h"
23 #include <assert.h>
24
25 /* Forward references to static routines */
26 static void report_format_hints(void);
27
28 #ifndef SQLITE_RECURSIVE
29 # define SQLITE_RECURSIVE 33
30 #endif
31
32 /*
33 ** WEBPAGE: /reportlist
34 */
35 void view_list(void){
36
--- test/merge2.test
+++ test/merge2.test
@@ -20,10 +20,11 @@
2020
2121
set filelist [glob $testdir/*]
2222
foreach f $filelist {
2323
if {[file isdir $f]} continue
2424
set base [file root [file tail $f]]
25
+ if {[string match "utf16*" $base]} continue
2526
set f1 [read_file $f]
2627
write_file t1 $f1
2728
for {set i 0} {$i<100} {incr i} {
2829
expr {srand($i*2)}
2930
write_file t2 [set f2 [random_changes $f1 2 4 0 0.1]]
3031
--- test/merge2.test
+++ test/merge2.test
@@ -20,10 +20,11 @@
20
21 set filelist [glob $testdir/*]
22 foreach f $filelist {
23 if {[file isdir $f]} continue
24 set base [file root [file tail $f]]
 
25 set f1 [read_file $f]
26 write_file t1 $f1
27 for {set i 0} {$i<100} {incr i} {
28 expr {srand($i*2)}
29 write_file t2 [set f2 [random_changes $f1 2 4 0 0.1]]
30
--- test/merge2.test
+++ test/merge2.test
@@ -20,10 +20,11 @@
20
21 set filelist [glob $testdir/*]
22 foreach f $filelist {
23 if {[file isdir $f]} continue
24 set base [file root [file tail $f]]
25 if {[string match "utf16*" $base]} continue
26 set f1 [read_file $f]
27 write_file t1 $f1
28 for {set i 0} {$i<100} {incr i} {
29 expr {srand($i*2)}
30 write_file t2 [set f2 [random_changes $f1 2 4 0 0.1]]
31
--- test/utf16le.txt
+++ test/utf16le.txt
@@ -1,6 +1,6 @@
1
-This file contains utf-16le text.
1
+This file contains utf-16be text.
22
The purpose for including this file in the Fossil
33
repository is to provide the ability to test Fossil's
44
handling of UTF-16 using its own repository.
55
66
Browsing to this file in the web interface should display the file as
77
--- test/utf16le.txt
+++ test/utf16le.txt
@@ -1,6 +1,6 @@
1 This file contains utf-16le text.
2 The purpose for including this file in the Fossil
3 repository is to provide the ability to test Fossil's
4 handling of UTF-16 using its own repository.
5
6 Browsing to this file in the web interface should display the file as
7
--- test/utf16le.txt
+++ test/utf16le.txt
@@ -1,6 +1,6 @@
1 This file contains utf-16be text.
2 The purpose for including this file in the Fossil
3 repository is to provide the ability to test Fossil's
4 handling of UTF-16 using its own repository.
5
6 Browsing to this file in the web interface should display the file as
7

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button