]> 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>
Wed, 10 Jan 2018 19:46:00 +0000 (20:46 +0100)
tests/Makefile.am
tests/control-flow/while-false.vala [new file with mode: 0644]

index cbd116e344146a0c26625f58176711b51fec1d0c..1855ff445a735a7106fb1422d2716485d0914cb4 100644 (file)
@@ -113,6 +113,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 ();
+       }
+}