From 9c02407ae7fac942b376638a24d0b08b04685049 Mon Sep 17 00:00:00 2001 From: Adeline CARNIS Date: Wed, 28 Sep 2016 17:31:15 +0200 Subject: [PATCH] * Bug #13470 fixed - histplot(0,0,%t) crashed Change-Id: I69c17a9bcd540fbc2ee8e3bb85b446f03e90b255 --- scilab/CHANGES.md | 1 + .../graphics/tests/nonreg_tests/bug_13470.dia.ref | 16 ++++++++++++++++ .../graphics/tests/nonreg_tests/bug_13470.tst | 18 ++++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 scilab/modules/graphics/tests/nonreg_tests/bug_13470.dia.ref create mode 100644 scilab/modules/graphics/tests/nonreg_tests/bug_13470.tst diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md index 01bf02f..4f6ff45 100644 --- a/scilab/CHANGES.md +++ b/scilab/CHANGES.md @@ -326,6 +326,7 @@ Bug Fixes * [#11959](http://bugzilla.scilab.org/show_bug.cgi?id=11959): Allow "Zoom Area" to be clicked out of axes * [#12110](http://bugzilla.scilab.org/show_bug.cgi?id=12110): Unable to zoom multiple axes at once * [#13166](http://bugzilla.scilab.org/show_bug.cgi?id=13166): `l` and `b` endian flags used with `mget` and `mgeti` were sticky +* [#13470](http://bugzilla.scilab.org/show_bug.cgi?id=13470): `histplot(0,0,%t)` crashed * [#13583](http://bugzilla.scilab.org/show_bug.cgi?id=13583): `getd` loading a script including a `clear` instruction yielded an error * [#13597](http://bugzilla.scilab.org/show_bug.cgi?id=13597): `help format` claimed setting a number of digits instead of characters * [#13757](http://bugzilla.scilab.org/show_bug.cgi?id=13757): The toolbox menu dit not load properly ATOMS modules not autoloaded. diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_13470.dia.ref b/scilab/modules/graphics/tests/nonreg_tests/bug_13470.dia.ref new file mode 100644 index 0000000..ec667d3 --- /dev/null +++ b/scilab/modules/graphics/tests/nonreg_tests/bug_13470.dia.ref @@ -0,0 +1,16 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2016 - Scilab Enterprises - Adeline CARNIS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// <-- Non-regression test for bug 13470 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=13740 +// +// <-- Short Description --> +// histplot(0,0,%t) crashed. +// ============================================================================= +errmsg=msprintf(_("%s: Wrong value for input argument #%d: Must be in the interval %s.\n"),"histc",1,"[1, oo)"); +assert_checkerror("histplot(0,0,%t)", errmsg); diff --git a/scilab/modules/graphics/tests/nonreg_tests/bug_13470.tst b/scilab/modules/graphics/tests/nonreg_tests/bug_13470.tst new file mode 100644 index 0000000..959fc94 --- /dev/null +++ b/scilab/modules/graphics/tests/nonreg_tests/bug_13470.tst @@ -0,0 +1,18 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2016 - Scilab Enterprises - Adeline CARNIS +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= + +// <-- Non-regression test for bug 13470 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=13740 +// +// <-- Short Description --> +// histplot(0,0,%t) crashed. +// ============================================================================= + +errmsg=msprintf(_("%s: Wrong value for input argument #%d: Must be in the interval %s.\n"),"histc",1,"[1, oo)"); +assert_checkerror("histplot(0,0,%t)", errmsg); -- 1.7.9.5