##// END OF EJS Templates
run-tests: don't error when glob matched line ends with backslash...
Gregory Szorc -
r24811:a2dcf460 stable
parent child Browse files
Show More
@@ -1065,7 +1065,7 b' class TTest(Test):'
1065 while i < n:
1065 while i < n:
1066 c = el[i]
1066 c = el[i]
1067 i += 1
1067 i += 1
1068 if c == '\\' and el[i] in '*?\\/':
1068 if c == '\\' and i < n and el[i] in '*?\\/':
1069 res += el[i - 1:i + 1]
1069 res += el[i - 1:i + 1]
1070 i += 1
1070 i += 1
1071 elif c == '*':
1071 elif c == '*':
@@ -491,3 +491,17 b' test for --json'
491 } (no-eol)
491 } (no-eol)
492
492
493 #endif
493 #endif
494
495 backslash on end of line with glob matching is handled properly
496
497 $ cat > test-glob-backslash.t << EOF
498 > $ echo 'foo bar \\'
499 > foo * \ (glob)
500 > EOF
501
502 $ $TESTDIR/run-tests.py --with-hg=`which hg` test-glob-backslash.t
503 .
504 # Ran 1 tests, 0 skipped, 0 warned, 0 failed.
505
506 $ rm -f test-glob-backslash.t
507
General Comments 0
You need to be logged in to leave comments. Login now