diff libinterp/corefcn/nproc.cc @ 19168:9163a6e9b096

Use unsetenv to fix libgomp error created by nproc BIST testing. * nproc.cc (Fnproc): Use unsetenv to delete OMP_NUM_THREADS environment variable after testing. * test/system.tst: Rename putenv to setenv in %!tests.
author Rik <rik@octave.org>
date Sat, 27 Sep 2014 12:47:37 -0700
parents b5c03bcc640a
children 4197fc428c7d
line wrap: on
line diff
--- a/libinterp/corefcn/nproc.cc	Sat Sep 27 12:26:57 2014 -0700
+++ b/libinterp/corefcn/nproc.cc	Sat Sep 27 12:47:37 2014 -0700
@@ -101,7 +101,7 @@
 %!   if (! isempty (old_val))
 %!     setenv ("OMP_NUM_THREADS", old_val);
 %!   else
-%!     setenv ("OMP_NUM_THREADS", "");
+%!     unsetenv ("OMP_NUM_THREADS");
 %!   endif
 %! end_unwind_protect