##// END OF EJS Templates
tests: add test showing puzzling test output with (glob) lines...
Martin von Zweigbergk -
r38571:3fb46734 default
parent child Browse files
Show More
@@ -120,6 +120,52 b' test churn with globs'
120 120 python hash seed: * (glob)
121 121 [1]
122 122
123 test how multiple globs gets matched with lines in output
124 $ cat > test-failure-globs.t <<EOF
125 > $ echo "context"; echo "context"; \
126 > echo "key: 1"; echo "value: not a"; \
127 > echo "key: 2"; echo "value: not b"; \
128 > echo "key: 3"; echo "value: c"; \
129 > echo "key: 4"; echo "value: d"
130 > context
131 > context
132 > key: 1
133 > value: a
134 > key: 2
135 > value: b
136 > key: 3
137 > value: * (glob)
138 > key: 4
139 > value: * (glob)
140 > EOF
141 $ rt test-failure-globs.t
142
143 --- $TESTTMP/test-failure-globs.t
144 +++ $TESTTMP/test-failure-globs.t.err
145 @@ -2,10 +2,10 @@
146 context
147 context
148 key: 1
149 - value: a
150 + value: * (glob)
151 key: 2
152 - value: b
153 + value: * (glob)
154 key: 3
155 - value: * (glob)
156 + value: c
157 key: 4
158 - value: * (glob)
159 + value: d
160
161 ERROR: test-failure-globs.t output changed
162 !
163 Failed test-failure-globs.t: output changed
164 # Ran 1 tests, 0 skipped, 1 failed.
165 python hash seed: * (glob)
166 [1]
167 $ rm test-failure-globs.t
168
123 169 test diff colorisation
124 170
125 171 #if no-windows pygments
@@ -374,6 +420,7 b' test --xunit support'
374 420
375 421 $ cat .testtimes
376 422 test-empty.t * (glob)
423 test-failure-globs.t * (glob)
377 424 test-failure-unicode.t * (glob)
378 425 test-failure.t * (glob)
379 426 test-success.t * (glob)
General Comments 0
You need to be logged in to leave comments. Login now