changeset 32170:cb56ab555113

test.m: pretty print shared variables (bug #64351) * test.m: Use fdisp() rather than fputs() so that a newline is added after title line for shared variables.
author Rik <rik@octave.org>
date Mon, 26 Jun 2023 11:44:10 -0700
parents 47cf72897a06
children 4555f9918009
files scripts/testfun/test.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/test.m	Mon Jun 26 08:35:07 2023 -0700
+++ b/scripts/testfun/test.m	Mon Jun 26 11:44:10 2023 -0700
@@ -731,7 +731,7 @@
             && ! strcmp (__type, "testif")
             && ! strcmp (__type, "xtest")
             && ! all (__shared == " "))
-          fputs (__fid, "shared variables ");
+          fdisp (__fid, "shared variables ");
           eval (sprintf ("fdisp (__fid,var2struct(%s));", __shared));
         endif
         fflush (__fid);