From 00828e9c1b5abb114ca3adf4fafffc844ce6e82b Mon Sep 17 00:00:00 2001 From: Cedric Delamarre Date: Mon, 10 Aug 2015 14:39:36 +0200 Subject: [PATCH] bug_14049 test added. test_run io bug_14049 Change-Id: If957e22d6348fb78038089285f841b54ed9a2662 --- .../io/tests/nonreg_tests/bug_14049.dia.ref | 21 ++++++++++++++++++ scilab/modules/io/tests/nonreg_tests/bug_14049.tst | 23 ++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 scilab/modules/io/tests/nonreg_tests/bug_14049.dia.ref create mode 100644 scilab/modules/io/tests/nonreg_tests/bug_14049.tst diff --git a/scilab/modules/io/tests/nonreg_tests/bug_14049.dia.ref b/scilab/modules/io/tests/nonreg_tests/bug_14049.dia.ref new file mode 100644 index 0000000..e39c889 --- /dev/null +++ b/scilab/modules/io/tests/nonreg_tests/bug_14049.dia.ref @@ -0,0 +1,21 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2015 - Scilab Enterprises - Cedric Delamarre +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 14049 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=14049 +// +// <-- Short Description --> +// genlib hangs if an unexpected endfunction occurs +mkdir(TMPDIR + "bug_14049"); +fun = [ "function r=foo()" +"x=1" +"endfunction" +"endfunction"]; +mputl(fun, TMPDIR + "bug_14049"+filesep()+"bug_14049.sce"); +genlib("bug_14049lib",TMPDIR+"bug_14049",%t); diff --git a/scilab/modules/io/tests/nonreg_tests/bug_14049.tst b/scilab/modules/io/tests/nonreg_tests/bug_14049.tst new file mode 100644 index 0000000..6e5bf62 --- /dev/null +++ b/scilab/modules/io/tests/nonreg_tests/bug_14049.tst @@ -0,0 +1,23 @@ +// ============================================================================= +// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab +// Copyright (C) 2015 - Scilab Enterprises - Cedric Delamarre +// +// This file is distributed under the same license as the Scilab package. +// ============================================================================= +// +// <-- Non-regression test for bug 14049 --> +// +// <-- Bugzilla URL --> +// http://bugzilla.scilab.org/show_bug.cgi?id=14049 +// +// <-- Short Description --> +// genlib hangs if an unexpected endfunction occurs + +mkdir(TMPDIR + "bug_14049"); +fun = [ "function r=foo()" +"x=1" +"endfunction" +"endfunction"]; + +mputl(fun, TMPDIR + "bug_14049"+filesep()+"bug_14049.sce"); +genlib("bug_14049lib",TMPDIR+"bug_14049",%t); -- 1.7.9.5