7017
|
1 ## Copyright (C) 2006, 2007 John W. Eaton |
7016
|
2 ## |
|
3 ## This file is part of Octave. |
|
4 ## |
|
5 ## Octave is free software; you can redistribute it and/or modify it |
|
6 ## under the terms of the GNU General Public License as published by |
|
7 ## the Free Software Foundation; either version 3 of the License, or (at |
|
8 ## your option) any later version. |
|
9 ## |
|
10 ## Octave is distributed in the hope that it will be useful, but |
|
11 ## WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 ## General Public License for more details. |
|
14 ## |
|
15 ## You should have received a copy of the GNU General Public License |
|
16 ## along with Octave; see the file COPYING. If not, see |
|
17 ## <http://www.gnu.org/licenses/>. |
|
18 |
5590
|
19 %% Automatically generated from DejaGNU files |
|
20 |
|
21 %% test/octave.test/error/error-1.m |
|
22 %!function g () |
|
23 %! error ("foo"); |
|
24 %!function f () |
|
25 %! g (); |
|
26 %!error <foo> f (); |
|
27 |
|
28 %% test/octave.test/error/error-2.m |
|
29 %!function g () |
|
30 %! error ("foo\n"); |
|
31 %!function f () |
|
32 %! g |
|
33 %!error <foo> f (); |
|
34 |
|
35 %% test/octave.test/error/error-3.m |
|
36 %!error error (); |
|
37 |
|
38 %% test/octave.test/error/error-4.m |
|
39 %!error <foo> error ("foo\n"); |
|
40 |
5775
|
41 %% FIXME Why can't I use %!warning <foo> f; |
5590
|
42 %% test/octave.test/error/warning-1.m |
|
43 %!function g () |
|
44 %! warning ("foo"); |
|
45 %!function f () |
|
46 %! g; |
|
47 %!test |
|
48 %! fail("f","warning","foo"); |
|
49 |
|
50 %% test/octave.test/error/warning-2.m |
|
51 %!test |
|
52 %! st.identifier = "backtrace"; |
|
53 %! ws = warning ("query","backtrace"); |
|
54 %! warning ("on","backtrace"); |
|
55 %! st.state = "on"; |
|
56 %! assert(warning ("query","backtrace"),st); |
|
57 %! warning ("off","backtrace"); |
|
58 %! st.state = "off"; |
|
59 %! assert(warning ("query","backtrace"),st); |
|
60 %! warning (ws.state,"backtrace"); |
|
61 |
5775
|
62 %% FIXME This test no longer makes sense with new warning syntax |
5590
|
63 %% test/octave.test/error/warning-3.m |
|
64 %!#warning <foo> warning ("foo", 1); |
|
65 |
|
66 %% test/octave.test/error/usage-1.m |
|
67 %!function g () |
|
68 %! usage ("foo"); |
|
69 %!function f () |
|
70 %! g (); |
|
71 %!error <usage:> f (); |
|
72 |
|
73 %% test/octave.test/error/usage-2.m |
|
74 %!function g () |
|
75 %! usage ("foo"); |
|
76 %!function f () |
|
77 %! g |
|
78 %!error <usage:> f (); |
|
79 |
|
80 %% test/octave.test/error/usage-3.m |
|
81 %!error usage (); |
|
82 |
|
83 %% test/octave.test/error/usage-4.m |
|
84 %!error <foo> usage ("foo\n"); |
|
85 |