]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add "while (false)" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Sun, 7 Jan 2018 17:59:11 +0000 (18:59 +0100)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 7 Jan 2018 19:26:03 +0000 (20:26 +0100)
tests/Makefile.am
tests/control-flow/while-false.vala [new file with mode: 0644]

index 349dd02874f29dad0a910a78b3a80771327c59aa..effcbed6d401f4b5d74de002022800783a70c9e8 100644 (file)
@@ -114,6 +114,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 (file)
index 0000000..44e136a
--- /dev/null
@@ -0,0 +1,5 @@
+void main () {
+       while (false) {
+               assert_not_reached ();
+       }
+}