5590
|
1 %% Automatically generated from DejaGNU files |
|
2 |
|
3 %% test/octave.test/error/error-1.m |
|
4 %!function g () |
|
5 %! error ("foo"); |
|
6 %!function f () |
|
7 %! g (); |
|
8 %!error <foo> f (); |
|
9 |
|
10 %% test/octave.test/error/error-2.m |
|
11 %!function g () |
|
12 %! error ("foo\n"); |
|
13 %!function f () |
|
14 %! g |
|
15 %!error <foo> f (); |
|
16 |
|
17 %% test/octave.test/error/error-3.m |
|
18 %!error error (); |
|
19 |
|
20 %% test/octave.test/error/error-4.m |
|
21 %!error <foo> error ("foo\n"); |
|
22 |
5775
|
23 %% FIXME Why can't I use %!warning <foo> f; |
5590
|
24 %% test/octave.test/error/warning-1.m |
|
25 %!function g () |
|
26 %! warning ("foo"); |
|
27 %!function f () |
|
28 %! g; |
|
29 %!test |
|
30 %! fail("f","warning","foo"); |
|
31 |
|
32 %% test/octave.test/error/warning-2.m |
|
33 %!test |
|
34 %! st.identifier = "backtrace"; |
|
35 %! ws = warning ("query","backtrace"); |
|
36 %! warning ("on","backtrace"); |
|
37 %! st.state = "on"; |
|
38 %! assert(warning ("query","backtrace"),st); |
|
39 %! warning ("off","backtrace"); |
|
40 %! st.state = "off"; |
|
41 %! assert(warning ("query","backtrace"),st); |
|
42 %! warning (ws.state,"backtrace"); |
|
43 |
5775
|
44 %% FIXME This test no longer makes sense with new warning syntax |
5590
|
45 %% test/octave.test/error/warning-3.m |
|
46 %!#warning <foo> warning ("foo", 1); |
|
47 |
|
48 %% test/octave.test/error/usage-1.m |
|
49 %!function g () |
|
50 %! usage ("foo"); |
|
51 %!function f () |
|
52 %! g (); |
|
53 %!error <usage:> f (); |
|
54 |
|
55 %% test/octave.test/error/usage-2.m |
|
56 %!function g () |
|
57 %! usage ("foo"); |
|
58 %!function f () |
|
59 %! g |
|
60 %!error <usage:> f (); |
|
61 |
|
62 %% test/octave.test/error/usage-3.m |
|
63 %!error usage (); |
|
64 |
|
65 %% test/octave.test/error/usage-4.m |
|
66 %!error <foo> usage ("foo\n"); |
|
67 |