Fossil SCM

More test fixes in the 'th1' test file.

mistachkin 2016-01-10 01:43 trunk
Commit 5d49329fc24d9a6084519d8e1474945160911eee
1 file changed +24 -8
+24 -8
--- test/th1.test
+++ test/th1.test
@@ -554,16 +554,22 @@
554554
fossil test-th-eval "lindex list -0x"
555555
test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
556556
557557
###############################################################################
558558
559
-fossil test-th-eval "checkout 1"; # NOTE: Assumes running "in tree".
559
+run_in_checkout {
560
+ fossil test-th-eval "checkout 1"
561
+}
562
+
560563
test th1-checkout-1 {[string length $RESULT] > 0}
561564
562565
###############################################################################
563566
564
-fossil test-th-eval "checkout"; # NOTE: Assumes running "in tree".
567
+run_in_checkout {
568
+ fossil test-th-eval "checkout"
569
+}
570
+
565571
test th1-checkout-2 {[string length $RESULT] > 0}
566572
567573
###############################################################################
568574
569575
set savedPwd [pwd]; cd /
@@ -766,17 +772,22 @@
766772
fossil test-th-eval --open-config "artifact 0000000000 test/th1.test"
767773
test th1-artifact-9 {$RESULT eq {TH_ERROR: manifest not found}}
768774
769775
###############################################################################
770776
771
-fossil test-th-eval "globalState checkout"
777
+run_in_checkout {
778
+ fossil test-th-eval "globalState checkout"
779
+}
780
+
772781
test th1-globalState-1 {[string length $RESULT] > 0}
773782
774783
###############################################################################
775784
776
-fossil test-th-eval "globalState checkout"
777
-test th1-globalState-2 {$RESULT eq [fossil test-th-eval checkout]}
785
+run_in_checkout {
786
+ fossil test-th-eval "globalState checkout"
787
+ test th1-globalState-2 {$RESULT eq [fossil test-th-eval checkout]}
788
+}
778789
779790
###############################################################################
780791
781792
fossil test-th-eval "globalState configuration"
782793
test th1-globalState-3 {[string length $RESULT] == 0}
@@ -801,17 +812,22 @@
801812
fossil test-th-eval --errorlog foserrors.log "globalState log"
802813
test th1-globalState-7 {$RESULT eq "foserrors.log"}
803814
804815
###############################################################################
805816
806
-fossil test-th-eval "globalState repository"
817
+run_in_checkout {
818
+ fossil test-th-eval "globalState repository"
819
+}
820
+
807821
test th1-globalState-8 {[string length $RESULT] > 0}
808822
809823
###############################################################################
810824
811
-fossil test-th-eval "globalState repository"
812
-test th1-globalState-9 {$RESULT eq [fossil test-th-eval repository]}
825
+run_in_checkout {
826
+ fossil test-th-eval "globalState repository"
827
+ test th1-globalState-9 {$RESULT eq [fossil test-th-eval repository]}
828
+}
813829
814830
###############################################################################
815831
816832
fossil test-th-eval "globalState top"
817833
test th1-globalState-10 {[string length $RESULT] == 0}
818834
--- test/th1.test
+++ test/th1.test
@@ -554,16 +554,22 @@
554 fossil test-th-eval "lindex list -0x"
555 test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
556
557 ###############################################################################
558
559 fossil test-th-eval "checkout 1"; # NOTE: Assumes running "in tree".
 
 
 
560 test th1-checkout-1 {[string length $RESULT] > 0}
561
562 ###############################################################################
563
564 fossil test-th-eval "checkout"; # NOTE: Assumes running "in tree".
 
 
 
565 test th1-checkout-2 {[string length $RESULT] > 0}
566
567 ###############################################################################
568
569 set savedPwd [pwd]; cd /
@@ -766,17 +772,22 @@
766 fossil test-th-eval --open-config "artifact 0000000000 test/th1.test"
767 test th1-artifact-9 {$RESULT eq {TH_ERROR: manifest not found}}
768
769 ###############################################################################
770
771 fossil test-th-eval "globalState checkout"
 
 
 
772 test th1-globalState-1 {[string length $RESULT] > 0}
773
774 ###############################################################################
775
776 fossil test-th-eval "globalState checkout"
777 test th1-globalState-2 {$RESULT eq [fossil test-th-eval checkout]}
 
 
778
779 ###############################################################################
780
781 fossil test-th-eval "globalState configuration"
782 test th1-globalState-3 {[string length $RESULT] == 0}
@@ -801,17 +812,22 @@
801 fossil test-th-eval --errorlog foserrors.log "globalState log"
802 test th1-globalState-7 {$RESULT eq "foserrors.log"}
803
804 ###############################################################################
805
806 fossil test-th-eval "globalState repository"
 
 
 
807 test th1-globalState-8 {[string length $RESULT] > 0}
808
809 ###############################################################################
810
811 fossil test-th-eval "globalState repository"
812 test th1-globalState-9 {$RESULT eq [fossil test-th-eval repository]}
 
 
813
814 ###############################################################################
815
816 fossil test-th-eval "globalState top"
817 test th1-globalState-10 {[string length $RESULT] == 0}
818
--- test/th1.test
+++ test/th1.test
@@ -554,16 +554,22 @@
554 fossil test-th-eval "lindex list -0x"
555 test th1-expr-49 {$RESULT eq {TH_ERROR: expected integer, got: "-0x"}}
556
557 ###############################################################################
558
559 run_in_checkout {
560 fossil test-th-eval "checkout 1"
561 }
562
563 test th1-checkout-1 {[string length $RESULT] > 0}
564
565 ###############################################################################
566
567 run_in_checkout {
568 fossil test-th-eval "checkout"
569 }
570
571 test th1-checkout-2 {[string length $RESULT] > 0}
572
573 ###############################################################################
574
575 set savedPwd [pwd]; cd /
@@ -766,17 +772,22 @@
772 fossil test-th-eval --open-config "artifact 0000000000 test/th1.test"
773 test th1-artifact-9 {$RESULT eq {TH_ERROR: manifest not found}}
774
775 ###############################################################################
776
777 run_in_checkout {
778 fossil test-th-eval "globalState checkout"
779 }
780
781 test th1-globalState-1 {[string length $RESULT] > 0}
782
783 ###############################################################################
784
785 run_in_checkout {
786 fossil test-th-eval "globalState checkout"
787 test th1-globalState-2 {$RESULT eq [fossil test-th-eval checkout]}
788 }
789
790 ###############################################################################
791
792 fossil test-th-eval "globalState configuration"
793 test th1-globalState-3 {[string length $RESULT] == 0}
@@ -801,17 +812,22 @@
812 fossil test-th-eval --errorlog foserrors.log "globalState log"
813 test th1-globalState-7 {$RESULT eq "foserrors.log"}
814
815 ###############################################################################
816
817 run_in_checkout {
818 fossil test-th-eval "globalState repository"
819 }
820
821 test th1-globalState-8 {[string length $RESULT] > 0}
822
823 ###############################################################################
824
825 run_in_checkout {
826 fossil test-th-eval "globalState repository"
827 test th1-globalState-9 {$RESULT eq [fossil test-th-eval repository]}
828 }
829
830 ###############################################################################
831
832 fossil test-th-eval "globalState top"
833 test th1-globalState-10 {[string length $RESULT] == 0}
834

Keyboard Shortcuts

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