@@ -181,32 +181,31 @@
181 181 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
set t1 [clock format [clock seconds] -gmt 1 -format "%Y-%m-%d %H:%M:%S"]
182 182 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
write_file f9 "Timestamp: $t1"
183 183 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil attachment add f9 --technote {2016-01-05 01:02:03}
184 184 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-31 {$CODE == 0}
185 185 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil wiki create {Attachment collision} f9 --technote now
186 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- test wiki-32 {$CODE == 0} knownBug
186 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ test wiki-32 {$CODE == 0}
187 187 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
#
188 188 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# Now waste time until the next second so that the remaining tests
189 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- # don't have to suffer from this known bug with attachments. This
190 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- # delay could be removed if that bug is fixed, but probably shouldn't
191 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- # be.
189 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ # don't have to worry about a potential collision
192 190 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
set t0 [clock seconds]
193 191 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
while {$t0 == [clock seconds]} {
194 192 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
after 100
195 193 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
}
196 194 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
197 195 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
###############################################################################
198 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
- # Check a technote with no timestamp can not be created, but that
196 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ # Check a technote with no timestamp cannot be created, but that
199 197 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# "now" is a valid stamp.
200 198 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
set t2 [clock format [clock seconds] -gmt 1 -format "%Y-%m-%d %H:%M:%S"]
201 199 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
write_file f10 "Even unstampted notes are delivered.\nStamped $t2"
202 200 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil wiki create "Unstamped Note" f10 --technote -expectError
203 201 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-33 {$CODE != 0}
204 202 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil wiki create "Unstamped Note" f10 --technote now
205 203 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-34 {$CODE == 0}
206 204 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil wiki list -t
207 205 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-35 {[string match "*$t2*" $RESULT]}
206 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+
208 207 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
###############################################################################
209 208 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
# Check an attachment to it in the same second works.
210 209 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
write_file f11 "Time Stamp was $t2"
211 210 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil attachment add f11 --technote $t2
212 211 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-36 {$CODE == 0}
@@ -213,10 +212,16 @@
213 212 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil timeline
214 213 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-36-1 {$CODE == 0}
215 214 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
fossil wiki list -t
216 215 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test wiki-36-2 {$CODE == 0}
217 216 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
217 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ ###############################################################################
218 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ # Check that we have the expected number of tech notes on the list (and not
219 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ # extra ones from other events (such as the attachments) - 7 tech notes
220 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ # expected created by tests 9, 17, 19, 29, 31, 32 and 34
221 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ fossil wiki list --technote
222 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
+ test wiki-37 {[llength [split $RESULT "\n"]] == 7}
218 223 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
219 224 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
###############################################################################
220 225 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
221 226 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
test_cleanup
222 227 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!
223 228 { copied = false; pop = false }, 1000)" :class="copied && 'copied'">Copy link Copied!