9b949254d0c3ba06f41a47569d104dacef0ac947
[scilab.git] / scilab / modules / output_stream / tests / nonreg_tests / bug_2649.dia.ref
1 // =============================================================================
2 // Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 // Copyright (C) 2009 - DIGITEO - Allan CORNET
4 //
5 //  This file is distributed under the same license as the Scilab package.
6 // =============================================================================
7 // <-- CLI SHELL MODE -->
8 // <-- Non-regression test for bug 2649 -->
9 //
10 // <-- Short Description -->
11 // diary() function cannot be nested.
12 //
13 // <-- Bugzilla URL -->
14 // http://bugzilla.scilab.org/show_bug.cgi?id=2649
15 //
16 dia0 = diary(TMPDIR+'/my_log_1');
17 a = 1;
18 dia1 = diary(TMPDIR+'/my_log_2');
19 b = 1;
20 diary(dia0, 'close');
21 diary(dia1, 'close');
22 mgetl(TMPDIR+'/my_log_1')
23  ans  =
24 !                                       !
25 !                                       !
26 !a = 1;                             !
27 !                                       !
28 !                                       !
29 !                                       !
30 !dia1 = diary(TMPDIR+'/my_log_2');  !
31 !                                       !
32 !                                       !
33 !                                       !
34 !b = 1;                             !
35 !                                       !
36 !                                       !
37 !                                       !
38 !diary(dia0, 'close');              !
39 mgetl(TMPDIR+'/my_log_2')
40  ans  =
41 !                           !
42 !                           !
43 !b = 1;                 !
44 !                           !
45 !                           !
46 !                           !
47 !diary(dia0, 'close');  !
48 !                           !
49 !                           !
50 !                           !
51 !diary(dia1, 'close');  !