summaryrefslogtreecommitdiffstats
path: root/tests/nonRegression/bug1057.sci
blob: 310c10a6f3203ba1dada9d023e1113c00c3a7486 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// <-- Non-regression test for bug 1057 -->
//
// <-- Bugzilla URL -->
// http://www.scilab.org/cgi-bin/bugzilla_bug_II/show_bug.cgi?id=1057
//
// <-- Short Description -->
//    Crash when entering the following in the command window:
//
//    1.7977E+308
//
//    Actually, every number greater than 1.797E+308 crashes 
//    scilab (scilab3.0 under linux gives the correct answer Inf).
//
//    A popup window appears with the following message:
//
//    forrtl: severe(64): input conversion error, unit -5, file 
//    Internal List Directed Read
//    Image [...]
//    LibScilab.dll [...]
//    [...]
//
//    [...] is text I don't think is important.
//
//    Basically overflow is translated in crashes where it should 
//    be Inf.


// Non-regression test file for bug 1057
// Pierre MARECHAL - Scilab Project
// Copyright INRIA
// 1er juin 2005

mode(-1);
clear;

if 1.7977E+308 == %inf  then
	affich_result(%T,1057);
else
	affich_result(%F,1057);
end