diff __py_tests__.m @ 388:ce61206a61f8

build: make distcheck pass again * Makefile.am (EXTRA_DIST): Include $(M_FILES). (PKG_ADD, PKG_DEL): Use $(srcdir) as needed. (check-local): Use $(srcdir) to run the test script. * __py_tests__.m: Suppress warnings about opening files on the load path.
author Mike Miller <mtmiller@octave.org>
date Mon, 03 Apr 2017 11:51:01 -0700
parents c6e93e7dcfba
children
line wrap: on
line diff
--- a/__py_tests__.m	Mon Apr 03 11:25:53 2017 -0700
+++ b/__py_tests__.m	Mon Apr 03 11:51:01 2017 -0700
@@ -26,10 +26,12 @@
   files_with_tests = {};
 
   pso = page_screen_output ();
+  orig_wstate = warning ();
 
   logfile = make_absolute_filename ("fntests.log");
   unwind_protect
     page_screen_output (false);
+    warning ("off", "Octave:data-file-in-path");
     try
       fid = fopen (logfile, "wt");
       if (fid < 0)
@@ -104,6 +106,8 @@
       disp (lasterr ());
     end_try_catch
   unwind_protect_cleanup
+    warning ("off", "all");
+    warning (orig_wstate);
     page_screen_output (pso);
   end_unwind_protect
   retval = (nfail != 0);