diff libinterp/corefcn/help.cc @ 26679:2b6aa96a5c82

create BIST temporary files in tempdir instead of P_tmpdir (bug #55565) * help.cc: Use tempdir instead of P_tmpdir in addpath and tempname. * variables.cc: Use tempdir instead of P_tmpdir to construct the full file name of the temporary file.
author Mike Miller <mtmiller@octave.org>
date Mon, 04 Feb 2019 16:29:26 -0800
parents 33f79d94f21f
children 9b261300a001
line wrap: on
line diff
--- a/libinterp/corefcn/help.cc	Mon Feb 04 13:47:15 2019 -0800
+++ b/libinterp/corefcn/help.cc	Mon Feb 04 16:29:26 2019 -0800
@@ -841,12 +841,12 @@
 
 /*
 %!test
-%! f = tempname (P_tmpdir, "oct_");
+%! f = tempname (tempdir (), "oct_");
 %! [~, fcn_name] = fileparts (f);
 %! f = [f ".m"];
 %! save_path = path ();
 %! unwind_protect
-%!   addpath (P_tmpdir);
+%!   addpath (tempdir ());
 %!   fid = fopen (f, "w+");
 %!   fprintf (fid, "function z = %s\n z = localfunctions; end\n", fcn_name);
 %!   fprintf (fid, "function z = b(x)\n z = x+1; end\n");