Mercurial > octave
changeset 25893:96c69234ac98
unpack.m: Fix failing BIST test on Windows (bug #54719).
* unpack.m: Change FILETYPE validation BIST test to have a Unix and Windows
version.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 24 Sep 2018 08:33:02 -0700 |
parents | cb440b43a236 |
children | 483e74e0c1c3 |
files | scripts/miscellaneous/unpack.m |
diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/miscellaneous/unpack.m Sat Sep 22 19:26:05 2018 +0200 +++ b/scripts/miscellaneous/unpack.m Mon Sep 24 08:33:02 2018 -0700 @@ -379,7 +379,12 @@ %!error <FILE "_%NOT_A_FILENAME%_" not found> unpack ("_%NOT_A_FILENAME%_") %!error <FILE "_%NOT_A_FILENAME%_" not found> unpack ({"_%NOT_A_FILENAME%_"}) %!error <FILE "_%NOT_A_FILENAME%_" not found> unpack ({"_%NOT_A_FILENAME%_", "2nd_filename"}) -%!error <FILETYPE must be a string> unpack ("/", [], 1) +%!error <FILETYPE must be a string> +%! if (isunix || ismac) +%! unpack ("/", [], 1) +%! else +%! unpack ('C:\', [], 1) +%! endif %!error <FILETYPE must be given for a directory> %! if (isunix || ismac) %! unpack ("/");