Mercurial > octave
changeset 32081:687ea87ccf5d
fileread: Run test only with working encoding facet (bug #64139).
* scripts/io/fileread.m: One of the tests doesn't emit an error if fopen
doesn't support specifying an encoding. Don't run that test when Octave is
linked with libc++.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Sat, 06 May 2023 18:43:46 +0200 |
parents | e9fdfebc6db0 |
children | 4e30fd192118 |
files | scripts/io/fileread.m |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/fileread.m Sat May 06 13:08:38 2023 +0200 +++ b/scripts/io/fileread.m Sat May 06 18:43:46 2023 +0200 @@ -105,5 +105,8 @@ %!error <parameter "Encoding" missing value> fileread ("filename", "Encoding") %!error <Unknown option "UnknownParam"> %! fileread ("filename", "UnknownParam", "UnknownValue") -%!error <conversion from codepage 'unknownvalue' not supported> -%! fileread ("filename", "Encoding", "UnknownValue") +## FIXME: The following test should be skipped if +## OCTAVE_HAVE_STRICT_ENCODING_FACET is defined. +%!testif ; ! __have_feature__ ("LLVM_LIBCXX") +%! fail ('fileread ("filename", "Encoding", "UnknownValue")', ... +%! "conversion from codepage 'unknownvalue' not supported");