Fossil SCM

Make TH1 tests work without relying on the exactly autosync setting value.

mistachkin 2014-02-15 06:46 trunk
Commit 2d90fd073e62ee237275f7edaa4568fcef0084e1
1 file changed +2 -2
+2 -2
--- test/th1.test
+++ test/th1.test
@@ -37,16 +37,16 @@
3737
test th1-setting-4 {$RESULT eq {TH_ERROR: no value for setting "abc"}}
3838
3939
###############################################################################
4040
4141
fossil test-th-eval --th-open-config "setting autosync"
42
-test th1-setting-5 {$RESULT eq 1}
42
+test th1-setting-5 {$RESULT eq 0 || $RESULT eq 1}
4343
4444
###############################################################################
4545
4646
fossil test-th-eval --th-open-config "setting -strict autosync"
47
-test th1-setting-6 {$RESULT eq 1}
47
+test th1-setting-6 {$RESULT eq 0 || $RESULT eq 1}
4848
4949
###############################################################################
5050
5151
fossil test-th-eval --th-open-config "setting --"
5252
test th1-setting-7 {$RESULT eq \
5353
--- test/th1.test
+++ test/th1.test
@@ -37,16 +37,16 @@
37 test th1-setting-4 {$RESULT eq {TH_ERROR: no value for setting "abc"}}
38
39 ###############################################################################
40
41 fossil test-th-eval --th-open-config "setting autosync"
42 test th1-setting-5 {$RESULT eq 1}
43
44 ###############################################################################
45
46 fossil test-th-eval --th-open-config "setting -strict autosync"
47 test th1-setting-6 {$RESULT eq 1}
48
49 ###############################################################################
50
51 fossil test-th-eval --th-open-config "setting --"
52 test th1-setting-7 {$RESULT eq \
53
--- test/th1.test
+++ test/th1.test
@@ -37,16 +37,16 @@
37 test th1-setting-4 {$RESULT eq {TH_ERROR: no value for setting "abc"}}
38
39 ###############################################################################
40
41 fossil test-th-eval --th-open-config "setting autosync"
42 test th1-setting-5 {$RESULT eq 0 || $RESULT eq 1}
43
44 ###############################################################################
45
46 fossil test-th-eval --th-open-config "setting -strict autosync"
47 test th1-setting-6 {$RESULT eq 0 || $RESULT eq 1}
48
49 ###############################################################################
50
51 fossil test-th-eval --th-open-config "setting --"
52 test th1-setting-7 {$RESULT eq \
53

Keyboard Shortcuts

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