summaryrefslogtreecommitdiff
path: root/posix/tst-regex.c
diff options
context:
space:
mode:
authorStefan Liebler <stli@linux.ibm.com>2019-08-28 10:29:24 +0200
committerStefan Liebler <stli@linux.ibm.com>2019-08-28 10:29:24 +0200
commit3a9d025fdd56f595ef9cb142486da4ee1b75281f (patch)
treed4a8df8e59e2c5e5f7efb49705109327ea8e0701 /posix/tst-regex.c
parent1bced8cadc82077f0201801239e89eb24b68e9aa (diff)
downloadglibc-3a9d025fdd56f595ef9cb142486da4ee1b75281f.tar.gz
Fix posix/tst-regex by using a dedicated input-file.
The recent commit e6855a3bdfe147c52b29b5e7d70a95a8aa22ece0 changed the encoding of ChangeLog.old/ChangeLog.8 from ISO-8859 to UTF-8. Unfortunately the test posix/tst-regex assumes the former encoding. Furthermore Francesco Potortì is now written with 'ì' instead of 'i`' which would lead to two further matches in the first call to test_expr. This patch just copies the former ChangeLog.8 file to tst-regex.input and adjusts the test in order to use this new input file. ChangeLog: * posix/tst-regex.c (do_test): Use tst-regex.input as input file. * posix/tst-regex.input: New file.
Diffstat (limited to 'posix/tst-regex.c')
-rw-r--r--posix/tst-regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/tst-regex.c b/posix/tst-regex.c
index fe05da9b63..c5d802625a 100644
--- a/posix/tst-regex.c
+++ b/posix/tst-regex.c
@@ -67,7 +67,7 @@ do_test (void)
mtrace ();
/* Make the content of the file available in memory. */
- file = "../ChangeLog.old/ChangeLog.8";
+ file = "./tst-regex.input";
fd = open (file, O_RDONLY);
if (fd == -1)
error (EXIT_FAILURE, errno, "cannot open %s", basename (file));