[vala/0.42] tests: Make "/errors/errors" test fatal



commit 2b38f023fb9826c4ac43040afd95b9eb3e8dffd1
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Mon Oct 29 17:17:36 2018 +0100

    tests: Make "/errors/errors" test fatal

 tests/errors/errors.vala | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/errors/errors.vala b/tests/errors/errors.vala
index 27f42f974..fb29c7c7c 100644
--- a/tests/errors/errors.vala
+++ b/tests/errors/errors.vala
@@ -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");
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]