comparison contrib/check-code.py @ 28034:e7ff258f71df

tests: make timezone in diff output glob-ed for portability Before this patch, some tests using external "diff" command via extdiff extension fail on Solaris, because system standard "diff" (= /usr/bin/diff) on Solaris doesn't display timezone for timestamp of each files in diff output. This patch makes timezone in external diff output glob-ed for portability of tests, and adds check-code.py a rule to detect such
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 08 Feb 2016 18:29:17 +0900
parents 0707bbec682d
children c65da6892ae5
comparison
equal deleted inserted replaced
28033:0707bbec682d 28034:e7ff258f71df
176 'write "file:/*/$TESTTMP" + (glob) to match on windows too'), 176 'write "file:/*/$TESTTMP" + (glob) to match on windows too'),
177 (r'^ (cat|find): .*: No such file or directory', 177 (r'^ (cat|find): .*: No such file or directory',
178 'use test -f to test for file existence'), 178 'use test -f to test for file existence'),
179 (r'^ diff -[^ -]*p', 179 (r'^ diff -[^ -]*p',
180 "don't use (external) diff with -p for portability"), 180 "don't use (external) diff with -p for portability"),
181 (r'^ [-+][-+][-+] .* [-+]0000 \(glob\)',
182 "glob timezone field in diff output for portability"),
181 ], 183 ],
182 # warnings 184 # warnings
183 [ 185 [
184 (r'^ [^*?/\n]* \(glob\)$', 186 (r'^ [^*?/\n]* \(glob\)$',
185 "glob match with no glob character (?*/)"), 187 "glob match with no glob character (?*/)"),