changeset 17913:730bc06134f9

test: Don't run bug-38576.tst on Windows systems where ls does not exist. * test/bug-38576.tst: Wrap test with "if (! ispc ())" block.
author Rik <rik@octave.org>
date Tue, 12 Nov 2013 20:00:25 -0800
parents 01496d4811b1
children 46da2c323ad6
files test/bug-38576.tst
diffstat 1 files changed, 8 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/test/bug-38576.tst	Wed Nov 13 02:49:06 2013 +0000
+++ b/test/bug-38576.tst	Tue Nov 12 20:00:25 2013 -0800
@@ -10,7 +10,11 @@
 %!  r = eval ("ls -1;");
 %!endfunction
 
-%!assert (f1 (), 0);
-%!assert (f2 (), 0);
-%!assert (ischar (f3 ()), true);
-%!assert (f3 (1), 0);
+%!test
+%! ## Windows systems can't run "ls -1"
+%! if (! ispc ())
+%!   assert (f1 (), 0);
+%!   assert (f2 (), 0);
+%!   assert (ischar (f3 ()), true);
+%!   assert (f3 (1), 0);
+%! endif