changeset 24086:2a9eec536cfd

__osmesa_print__.cc: Relax accuracy of failing BIST test. * __osmesa_print__.cc: Switch badly designed test of __osmesa_print__ from looking for an absolute file size to simply looking for a file larger than 2MB.
author Rik <rik@octave.org>
date Fri, 22 Sep 2017 12:46:53 -0700
parents ca7cef297280
children 88a593fa1388
files libinterp/dldfcn/__osmesa_print__.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/__osmesa_print__.cc	Fri Sep 22 13:01:58 2017 -0400
+++ b/libinterp/dldfcn/__osmesa_print__.cc	Fri Sep 22 12:46:53 2017 -0700
@@ -224,7 +224,7 @@
 %!   unwind_protect
 %!     sombrero ();
 %!     __osmesa_print__ (hf, fn, "svg");
-%!     assert (stat (fn).size, 2183074, -0.20);
+%!     assert (stat (fn).size > 2e6);
 %!     img = __osmesa_print__ (hf);
 %!     assert (size (img), [get(hf, "position")([4, 3]), 3]);
 %!     ## Use pixel sum per RGB channel as fingerprint