]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Make "/errors/errors" test fatal
authorRico Tzschichholz <ricotz@ubuntu.com>
Mon, 29 Oct 2018 16:17:36 +0000 (17:17 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Mon, 29 Oct 2018 16:18:34 +0000 (17:18 +0100)
tests/errors/errors.vala

index 27f42f974eecce29c38fdb6cdb941c36a0ee5087..fb29c7c7c2977c0e6f78ce8c54210aaf16255611 100644 (file)
@@ -11,7 +11,7 @@ class Maman.Bar : Object {
 
                throw new BarError.FOO (" 8");
 
-               stdout.printf (" BAD");
+               assert_not_reached ();
        }
 
        public int bad () throws BarError {
@@ -19,7 +19,7 @@ class Maman.Bar : Object {
 
                foo ();
 
-               stdout.printf (" BAD");
+               assert_not_reached ();
 
                return 0;
        }
@@ -42,7 +42,7 @@ class Maman.Bar : Object {
 
                        good ();
 
-                       stdout.printf (" BAD");
+                       assert_not_reached ();
                } catch (BarError e) {
                        stdout.printf (" 7");