Mercurial > hg > octave-lyh
changeset 14697:c2411bff11c6
test: Temporary patch to stop 'mkdir' tests failing until 'mkdir -p' is corrected.
* test_system.m: Save and restore pwd when running mkdir tests.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 28 May 2012 09:40:03 -0700 |
parents | 775fed9ed47d |
children | 0bab96aeb995 a08f6e17336e |
files | test/test_system.m |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_system.m +++ b/test/test_system.m @@ -124,11 +124,19 @@ %% test/octave.test/system/mk-rm-dir-1.m %!test +%! ## FIXME: saving and restoring of pwd in olldir is a hack +%! ## 'mkdir' should not change pwd but it does since +%! ## changeset 14679:a543ed02e673 +%! ## which created 'mkdir -p' capabilities. +%! ## When 'mkdir' has been corrected, delete this FIXME +%! ## and any lines with 'HACK'. +%! olddir = pwd; # HACK Line #1 %! nm = tmpnam (); %! e1 = mkdir (nm); %! [s2, e2] = stat (nm); %! e3 = rmdir (nm); %! [s4, e4] = stat (nm); +%! cd (olddir); # HACK Line #2 %! assert ((e1 && strcmp (s2.modestr(1), "d") && e3 && e4 < 0)); %% test/octave.test/system/mkdir-1.m