changeset 21460:236163306596

* test.m: Omit details about known test failures (bug #47444).
author John W. Eaton <jwe@octave.org>
date Thu, 17 Mar 2016 13:43:21 -0400
parents 385b67d48dda
children 35ce775d6115
files scripts/testfun/test.m
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/testfun/test.m	Tue Mar 15 13:46:22 2016 +0100
+++ b/scripts/testfun/test.m	Thu Mar 17 13:43:21 2016 -0400
@@ -587,7 +587,7 @@
           endif
         catch
           if (strcmp (__type, "xtest"))
-            __msg = [__signal_fail "known failure\n" lasterr()];
+            __msg = [__signal_fail "known failure\n"];
             __xfail += 1;
             __success = false;
           else
@@ -610,7 +610,9 @@
         endif
         fprintf (__fid, "%s\n", __msg);
         ## Show the variable context.
-        if (! strcmp (__type, "error") && ! strcmp (__type, "testif")
+        if (! strcmp (__type, "error")
+            && ! strcmp (__type, "testif")
+            && ! strcmp (__type, "xtest")
             && ! all (__shared == " "))
           fputs (__fid, "shared variables ");
           eval (sprintf ("fdisp(__fid,var2struct(%s));", __shared));