[vala/0.36: 141/173] tests: Add "while (false)" test to increase coverage



commit 1dfebe0d2e9aab12c7a40862892ddc531b32c770
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Sun Jan 7 18:59:11 2018 +0100

    tests: Add "while (false)" test to increase coverage

 tests/Makefile.am                   |    1 +
 tests/control-flow/while-false.vala |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 200b2c3..f950ccf 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -112,6 +112,7 @@ TESTS = \
        control-flow/nested-conditional.vala \
        control-flow/switch.vala \
        control-flow/sideeffects.vala \
+       control-flow/while-false.vala \
        control-flow/bug628336.vala \
        control-flow/bug639482.vala \
        control-flow/bug652549.vala \
diff --git a/tests/control-flow/while-false.vala b/tests/control-flow/while-false.vala
new file mode 100644
index 0000000..44e136a
--- /dev/null
+++ b/tests/control-flow/while-false.vala
@@ -0,0 +1,5 @@
+void main () {
+       while (false) {
+               assert_not_reached ();
+       }
+}


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