Fossil SCM

In the random merge test (merge2.test) ignore cases where the parallel random edits overlap, resulting in a merge conflict.

drh 2016-09-28 23:47 trunk
Commit caea288c2df6f803019891ab6d67ed8be15b27a5
1 file changed +1
--- test/merge2.test
+++ test/merge2.test
@@ -35,10 +35,11 @@
3535
expr {srand($i*2+1)}
3636
write_file t23 [random_changes $f2 2 4 2 0.1]
3737
expr {srand($i*2)}
3838
write_file t32 [random_changes $f3 2 4 0 0.1]
3939
fossil 3-way-merge t1 t2 t3 a23
40
+ if {[regexp {<<<<< BEGIN MERGE CONFLICT:} [read_file a23]]} continue
4041
test merge-$base-$i-23 {[same_file a23 t23]}
4142
fossil 3-way-merge t1 t3 t2 a32
4243
test merge-$base-$i-32 {[same_file a32 t32]}
4344
}
4445
}
4546
--- test/merge2.test
+++ test/merge2.test
@@ -35,10 +35,11 @@
35 expr {srand($i*2+1)}
36 write_file t23 [random_changes $f2 2 4 2 0.1]
37 expr {srand($i*2)}
38 write_file t32 [random_changes $f3 2 4 0 0.1]
39 fossil 3-way-merge t1 t2 t3 a23
 
40 test merge-$base-$i-23 {[same_file a23 t23]}
41 fossil 3-way-merge t1 t3 t2 a32
42 test merge-$base-$i-32 {[same_file a32 t32]}
43 }
44 }
45
--- test/merge2.test
+++ test/merge2.test
@@ -35,10 +35,11 @@
35 expr {srand($i*2+1)}
36 write_file t23 [random_changes $f2 2 4 2 0.1]
37 expr {srand($i*2)}
38 write_file t32 [random_changes $f3 2 4 0 0.1]
39 fossil 3-way-merge t1 t2 t3 a23
40 if {[regexp {<<<<< BEGIN MERGE CONFLICT:} [read_file a23]]} continue
41 test merge-$base-$i-23 {[same_file a23 t23]}
42 fossil 3-way-merge t1 t3 t2 a32
43 test merge-$base-$i-32 {[same_file a32 t32]}
44 }
45 }
46

Keyboard Shortcuts

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