~ubuntu-branches/ubuntu/lucid/scilab/lucid

« back to all changes in this revision

Viewing changes to modules/graphics/tests/nonreg_tests/bug_4236.tst

  • Committer: Bazaar Package Importer
  • Author(s): Sylvestre Ledru
  • Date: 2009-04-28 18:47:03 UTC
  • mfrom: (1.1.7 upstream) (4.2.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090428184703-7thddz8vtwqmxmx2
Tags: 5.1.1-4
* librefblas3-dev does not exist (yet). Thanks to Jose Ramon
* Do not stop when ocamlopt is not available on the arch 
  (ocaml-not-available.diff)
* Provide a clear error message for archs where modelicac compiler is 
  not available (modelicac-not-available.diff)
* scilab startup script moved from package scilab => scilab-bin (because of
  the ocamlopt problem, I cannot predict if modelicac will be available or
  not. Therefor, I ship usr/bin/ instead of binary per binary. This will
  also simplifies the packaging of Scilab 5.2)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// =============================================================================
 
2
// Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 
3
// Copyright (C) 2009 - Digiteo - Jean-Baptiste Silvy
 
4
//
 
5
//  This file is distributed under the same license as the Scilab package.
 
6
// =============================================================================
 
7
 
 
8
// <-- TEST WITH GRAPHIC -->
 
9
 
 
10
// <-- Non-regression test for bug 4236 -->
 
11
//
 
12
// <-- Bugzilla URL -->
 
13
// http://bugzilla.scilab.org/show_bug.cgi?id=4236
 
14
//
 
15
// <-- Short Description -->
 
16
// move called with an already deleted handle crashes Scilab.
 
17
// 
 
18
 
 
19
xpoly(1,1);
 
20
point = gce();
 
21
delete(point); // the handle is no longer valid
 
22
 
 
23
err = execstr("move(point, [1,1])","errcatch");
 
24
// should not crash Scilab but provide an error.
 
25
if (err == 0) then pause; end
 
26