Mercurial > octave
view test/bug-50831/bug-50831.tst @ 28296:6beb610b3bcd stable
Place BIST test file in temp directory, rather than current dir (bug #50831).
* test/bug-50831/bug-50831.tst: Use tempname() to get a temporary file name
located in a temp directory.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 15 May 2020 08:21:23 -0700 |
parents | bea3f8f96f7a |
children | 2838bbd84b87 |
line wrap: on
line source
%!test %! filename = tempname (); %! s.("a-b") = "bad fieldname"; %! unwind_protect %! save ("-text", filename, "s"); %! filevar = load (filename); %! assert (filevar.s, s); %! unwind_protect_cleanup %! sts = unlink (filename); %! end_unwind_protect