From 214424ee32c7723e34924b220eb9f9a33881f9f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Wojnowski?= Date: Sun, 22 Feb 2015 13:12:02 +0100 Subject: [PATCH] Fix tramp test. Make summary line text matching working in non English systems too. --- test/ChangeLog | 4 ++++ test/automated/tramp-tests.el | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/test/ChangeLog b/test/ChangeLog index 656124e..44e9444 100644 --- a/test/ChangeLog +++ b/test/ChangeLog @@ -1,5 +1,9 @@ 2015-02-22 Przemysław Wojnowski + * automated/tramp-tests.el (tramp-test17-insert-directory): + Fix test. Make summary line text matching working in non English + systems too. + * automated/cl-lib-tests.el: New tests. (cl-digit-char-p): Check returned value. diff --git a/test/automated/tramp-tests.el b/test/automated/tramp-tests.el index 2c4610c..e60a13f 100644 --- a/test/automated/tramp-tests.el +++ b/test/automated/tramp-tests.el @@ -955,7 +955,7 @@ This tests also `file-directory-p' and `file-accessible-directory-p'." (looking-at-p (concat ;; There might be a summary line. - "\\(total.+[[:digit:]]+\n\\)?" + "\\([[:alpha:]].+[[:digit:]]+\n\\)?" ;; We don't know in which order "." and ".." appear. "\\(.+ \\.?\\.\n\\)\\{2\\}" ".+ foo$"))))) -- 2.1.0