Fossil SCM

Updates to the 'mv-rm' tests.

mistachkin 2020-06-12 23:20 trunk
Commit 7f002bc6b2136c38b7501343599bb057e47e63bfc6314649670568f2717261f9
1 file changed +2 -2
+2 -2
--- test/mv-rm.test
+++ test/mv-rm.test
@@ -417,21 +417,21 @@
417417
# Test 18: Move Directory to New Directory #
418418
############################################
419419
420420
fossil mv --hard subdirC subdirD
421421
test mv-file-new-directory-7 {
422
- [normalize_result] eq "RENAME subdirC subdirD\nMOVED_FILE ${rootDir}/subdirC"
422
+ [normalize_result] eq "RENAME subdirC/f10 subdirD/f10\nRENAME subdirC/f11 subdirD/f11\nMOVED_FILE ${rootDir}/subdirC/f10\nMOVED_FILE ${rootDir}/subdirC/f11"
423423
}
424424
425425
test mv-file-new-directory-8 {[file size subdirD/f10] == 3}
426426
test mv-file-new-directory-9 {[read_file subdirD/f10] eq "f10"}
427427
test mv-file-new-directory-10 {[file size subdirD/f11] == 3}
428428
test mv-file-new-directory-11 {[read_file subdirD/f11] eq "f11"}
429429
430430
fossil revert
431431
test mv-file-new-directory-12 {
432
- [normalize_result] eq "REVERT subdirC/f10\nREVERT subdirC/f11${undoMsg}"
432
+ [normalize_result] eq "DELETE subdirD/f10\nDELETE subdirD/f11\nREVERT subdirC/f10\nREVERT subdirC/f11${undoMsg}"
433433
}
434434
435435
test mv-file-new-directory-13 {[file size subdirC/f10] == 3}
436436
test mv-file-new-directory-14 {[read_file subdirC/f10] eq "f10"}
437437
test mv-file-new-directory-15 {[file size subdirC/f11] == 3}
438438
--- test/mv-rm.test
+++ test/mv-rm.test
@@ -417,21 +417,21 @@
417 # Test 18: Move Directory to New Directory #
418 ############################################
419
420 fossil mv --hard subdirC subdirD
421 test mv-file-new-directory-7 {
422 [normalize_result] eq "RENAME subdirC subdirD\nMOVED_FILE ${rootDir}/subdirC"
423 }
424
425 test mv-file-new-directory-8 {[file size subdirD/f10] == 3}
426 test mv-file-new-directory-9 {[read_file subdirD/f10] eq "f10"}
427 test mv-file-new-directory-10 {[file size subdirD/f11] == 3}
428 test mv-file-new-directory-11 {[read_file subdirD/f11] eq "f11"}
429
430 fossil revert
431 test mv-file-new-directory-12 {
432 [normalize_result] eq "REVERT subdirC/f10\nREVERT subdirC/f11${undoMsg}"
433 }
434
435 test mv-file-new-directory-13 {[file size subdirC/f10] == 3}
436 test mv-file-new-directory-14 {[read_file subdirC/f10] eq "f10"}
437 test mv-file-new-directory-15 {[file size subdirC/f11] == 3}
438
--- test/mv-rm.test
+++ test/mv-rm.test
@@ -417,21 +417,21 @@
417 # Test 18: Move Directory to New Directory #
418 ############################################
419
420 fossil mv --hard subdirC subdirD
421 test mv-file-new-directory-7 {
422 [normalize_result] eq "RENAME subdirC/f10 subdirD/f10\nRENAME subdirC/f11 subdirD/f11\nMOVED_FILE ${rootDir}/subdirC/f10\nMOVED_FILE ${rootDir}/subdirC/f11"
423 }
424
425 test mv-file-new-directory-8 {[file size subdirD/f10] == 3}
426 test mv-file-new-directory-9 {[read_file subdirD/f10] eq "f10"}
427 test mv-file-new-directory-10 {[file size subdirD/f11] == 3}
428 test mv-file-new-directory-11 {[read_file subdirD/f11] eq "f11"}
429
430 fossil revert
431 test mv-file-new-directory-12 {
432 [normalize_result] eq "DELETE subdirD/f10\nDELETE subdirD/f11\nREVERT subdirC/f10\nREVERT subdirC/f11${undoMsg}"
433 }
434
435 test mv-file-new-directory-13 {[file size subdirC/f10] == 3}
436 test mv-file-new-directory-14 {[read_file subdirC/f10] eq "f10"}
437 test mv-file-new-directory-15 {[file size subdirC/f11] == 3}
438

Keyboard Shortcuts

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