Fossil SCM

Small logic errors in two test files

danshearer 2026-11-20 12:21 UTC test-suite-new
Commit e7c7e03ce4ea9e1aff7c4a158064ca25228c94e89fcb59d6803fcdecda187e69
--- test/rewrite-test-output.tcl
+++ test/rewrite-test-output.tcl
@@ -174,11 +174,11 @@
174174
{\1USER\2}
175175
}
176176
177177
dict set tests "set-manifest" {
178178
{^(project-code: )[0-9a-f]{40}$}
179
- {\1HASH} line
179
+ {\1HASH}
180180
}
181181
182182
dict set tests "stash" {
183183
{^(---|\+\+\+) NUL$}
184184
{\1 /dev/null}
@@ -256,11 +256,11 @@
256256
{^(This is unversioned file #4\. PID SEC) \d+ \d+}
257257
{\1 PID SEC}
258258
{^[0-9a-f]{12}( YYYY-mm-dd HH:MM:SS *)(\d+)( *)\2( unversioned4.txt)$}
259259
{HASH \1SZ\3SZ\4}
260260
{^[0-9a-f]{40}$}
261
- {\1HASH}
261
+ {HASH}
262262
{^((?:Clone|Pull)? done, wire bytes sent: )\d+( received: )\d+( remote: )(?:127\.0.0\.1|::1)$}
263263
{\1SENT\2RECV\3LOCALIP}
264264
{^(project-id: )[0-9a-f]{40}$}
265265
{\1HASH}
266266
{^(server-id: )[0-9a-f]{40}$}
267267
--- test/rewrite-test-output.tcl
+++ test/rewrite-test-output.tcl
@@ -174,11 +174,11 @@
174 {\1USER\2}
175 }
176
177 dict set tests "set-manifest" {
178 {^(project-code: )[0-9a-f]{40}$}
179 {\1HASH} line
180 }
181
182 dict set tests "stash" {
183 {^(---|\+\+\+) NUL$}
184 {\1 /dev/null}
@@ -256,11 +256,11 @@
256 {^(This is unversioned file #4\. PID SEC) \d+ \d+}
257 {\1 PID SEC}
258 {^[0-9a-f]{12}( YYYY-mm-dd HH:MM:SS *)(\d+)( *)\2( unversioned4.txt)$}
259 {HASH \1SZ\3SZ\4}
260 {^[0-9a-f]{40}$}
261 {\1HASH}
262 {^((?:Clone|Pull)? done, wire bytes sent: )\d+( received: )\d+( remote: )(?:127\.0.0\.1|::1)$}
263 {\1SENT\2RECV\3LOCALIP}
264 {^(project-id: )[0-9a-f]{40}$}
265 {\1HASH}
266 {^(server-id: )[0-9a-f]{40}$}
267
--- test/rewrite-test-output.tcl
+++ test/rewrite-test-output.tcl
@@ -174,11 +174,11 @@
174 {\1USER\2}
175 }
176
177 dict set tests "set-manifest" {
178 {^(project-code: )[0-9a-f]{40}$}
179 {\1HASH}
180 }
181
182 dict set tests "stash" {
183 {^(---|\+\+\+) NUL$}
184 {\1 /dev/null}
@@ -256,11 +256,11 @@
256 {^(This is unversioned file #4\. PID SEC) \d+ \d+}
257 {\1 PID SEC}
258 {^[0-9a-f]{12}( YYYY-mm-dd HH:MM:SS *)(\d+)( *)\2( unversioned4.txt)$}
259 {HASH \1SZ\3SZ\4}
260 {^[0-9a-f]{40}$}
261 {HASH}
262 {^((?:Clone|Pull)? done, wire bytes sent: )\d+( received: )\d+( remote: )(?:127\.0.0\.1|::1)$}
263 {\1SENT\2RECV\3LOCALIP}
264 {^(project-id: )[0-9a-f]{40}$}
265 {\1HASH}
266 {^(server-id: )[0-9a-f]{40}$}
267
--- test/th1-docs.test
+++ test/th1-docs.test
@@ -49,11 +49,11 @@
4949
5050
set dataFileName [file join $::testfiledir th1-docs-input.txt]
5151
set origFileStat [file join $::testfiledir fileStat.th1]
5252
5353
if {![file exists $origFileStat]} {
54
- error "unable to locate [$origFileStat]"
54
+ error "unable to locate $origFileStat"
5555
}
5656
5757
file copy $origFileStat fileStat.th1
5858
fossil add fileStat.th1
5959
fossil commit -m "Add fileStat.th1"
6060
--- test/th1-docs.test
+++ test/th1-docs.test
@@ -49,11 +49,11 @@
49
50 set dataFileName [file join $::testfiledir th1-docs-input.txt]
51 set origFileStat [file join $::testfiledir fileStat.th1]
52
53 if {![file exists $origFileStat]} {
54 error "unable to locate [$origFileStat]"
55 }
56
57 file copy $origFileStat fileStat.th1
58 fossil add fileStat.th1
59 fossil commit -m "Add fileStat.th1"
60
--- test/th1-docs.test
+++ test/th1-docs.test
@@ -49,11 +49,11 @@
49
50 set dataFileName [file join $::testfiledir th1-docs-input.txt]
51 set origFileStat [file join $::testfiledir fileStat.th1]
52
53 if {![file exists $origFileStat]} {
54 error "unable to locate $origFileStat"
55 }
56
57 file copy $origFileStat fileStat.th1
58 fossil add fileStat.th1
59 fossil commit -m "Add fileStat.th1"
60

Keyboard Shortcuts

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