Fossil SCM

Merge updates from trunk. Adjust tests to account for comment formatting changes. One key test is still failing.

mistachkin 2014-06-19 04:21 UTC respectformatting merge
Commit 59d80134ff5d9e0cb7a1e4bb25b5d5d9cb1ca28d
--- a/test/comment.test
+++ b/test/comment.test
@@ -0,0 +1,2 @@
1
+#
2
+# Copyri
--- a/test/comment.test
+++ b/test/comment.test
@@ -0,0 +1,2 @@
 
 
--- a/test/comment.test
+++ b/test/comment.test
@@ -0,0 +1,2 @@
1 #
2 # Copyri
--- a/test/comment.test
+++ b/test/comment.test
@@ -1,2 +1,2 @@
11
#
2
-#5decode5""9\n1#\n *1256855
2
+# Copyri
--- a/test/comment.test
+++ b/test/comment.test
@@ -1,2 +1,2 @@
1 #
2 #5decode5""9\n1#\n *1256855
--- a/test/comment.test
+++ b/test/comment.test
@@ -1,2 +1,2 @@
1 #
2 # Copyri
+7 -6
--- test/tester.tcl
+++ test/tester.tcl
@@ -21,10 +21,11 @@
2121
#
2222
# Where ../test/tester.tcl is the name of this file and ../bld/fossil
2323
# is the name of the executable to be tested.
2424
#
2525
26
+set testrundir [pwd]
2627
set testdir [file normalize [file dir $argv0]]
2728
set fossilexe [file normalize [lindex $argv 0]]
2829
set argv [lrange $argv 1 end]
2930
3031
set i [lsearch $argv -halt]
@@ -59,25 +60,25 @@
5960
6061
# start protocol
6162
#
6263
proc protInit {cmd} {
6364
if {$::PROT} {
64
- set out [open "prot" w]
65
+ set out [open [file join $::testrundir prot] w]
6566
fconfigure $out -translation platform
66
- puts $out "starting tests with:$cmd"
67
+ puts $out "starting tests with: $cmd"
6768
close $out
6869
}
6970
}
7071
7172
# write protocol
7273
#
7374
proc protOut {msg} {
74
- puts "$msg"
75
+ puts stdout $msg
7576
if {$::PROT} {
76
- set out [open "prot" a]
77
+ set out [open [file join $::testrundir prot] a]
7778
fconfigure $out -translation platform
78
- puts $out "$msg"
79
+ puts $out $msg
7980
close $out
8081
}
8182
}
8283
8384
# Run the fossil program
@@ -92,11 +93,11 @@
9293
9394
flush stdout
9495
set rc [catch {eval exec $cmd} result]
9596
global RESULT CODE
9697
set CODE $rc
97
- if {$rc} {puts "ERROR: $result"}
98
+ if {$rc} {protOut "ERROR: $result"}
9899
set RESULT $result
99100
}
100101
101102
# Read a file into memory.
102103
#
103104
--- test/tester.tcl
+++ test/tester.tcl
@@ -21,10 +21,11 @@
21 #
22 # Where ../test/tester.tcl is the name of this file and ../bld/fossil
23 # is the name of the executable to be tested.
24 #
25
 
26 set testdir [file normalize [file dir $argv0]]
27 set fossilexe [file normalize [lindex $argv 0]]
28 set argv [lrange $argv 1 end]
29
30 set i [lsearch $argv -halt]
@@ -59,25 +60,25 @@
59
60 # start protocol
61 #
62 proc protInit {cmd} {
63 if {$::PROT} {
64 set out [open "prot" w]
65 fconfigure $out -translation platform
66 puts $out "starting tests with:$cmd"
67 close $out
68 }
69 }
70
71 # write protocol
72 #
73 proc protOut {msg} {
74 puts "$msg"
75 if {$::PROT} {
76 set out [open "prot" a]
77 fconfigure $out -translation platform
78 puts $out "$msg"
79 close $out
80 }
81 }
82
83 # Run the fossil program
@@ -92,11 +93,11 @@
92
93 flush stdout
94 set rc [catch {eval exec $cmd} result]
95 global RESULT CODE
96 set CODE $rc
97 if {$rc} {puts "ERROR: $result"}
98 set RESULT $result
99 }
100
101 # Read a file into memory.
102 #
103
--- test/tester.tcl
+++ test/tester.tcl
@@ -21,10 +21,11 @@
21 #
22 # Where ../test/tester.tcl is the name of this file and ../bld/fossil
23 # is the name of the executable to be tested.
24 #
25
26 set testrundir [pwd]
27 set testdir [file normalize [file dir $argv0]]
28 set fossilexe [file normalize [lindex $argv 0]]
29 set argv [lrange $argv 1 end]
30
31 set i [lsearch $argv -halt]
@@ -59,25 +60,25 @@
60
61 # start protocol
62 #
63 proc protInit {cmd} {
64 if {$::PROT} {
65 set out [open [file join $::testrundir prot] w]
66 fconfigure $out -translation platform
67 puts $out "starting tests with: $cmd"
68 close $out
69 }
70 }
71
72 # write protocol
73 #
74 proc protOut {msg} {
75 puts stdout $msg
76 if {$::PROT} {
77 set out [open [file join $::testrundir prot] a]
78 fconfigure $out -translation platform
79 puts $out $msg
80 close $out
81 }
82 }
83
84 # Run the fossil program
@@ -92,11 +93,11 @@
93
94 flush stdout
95 set rc [catch {eval exec $cmd} result]
96 global RESULT CODE
97 set CODE $rc
98 if {$rc} {protOut "ERROR: $result"}
99 set RESULT $result
100 }
101
102 # Read a file into memory.
103 #
104

Keyboard Shortcuts

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