diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-01-07 18:59:11 +0100 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2018-01-07 20:26:03 +0100 |
commit | 1b99de996000d25c5d4207dec8427ccca5bc623a (patch) | |
tree | 98d09b120be096efb03538b8b6715871da185991 | |
parent | eb8761bb5f0f0d3058fb5c4d4f16140539b4891c (diff) | |
download | vala-1b99de996000d25c5d4207dec8427ccca5bc623a.tar.gz |
tests: Add "while (false)" test to increase coverage
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | 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 349dd0287..effcbed6d 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 index 000000000..44e136a4f --- /dev/null +++ b/tests/control-flow/while-false.vala @@ -0,0 +1,5 @@ +void main () { + while (false) { + assert_not_reached (); + } +} |