From: Rico Tzschichholz Date: Sun, 7 Jan 2018 14:39:44 +0000 (+0100) Subject: tests: Add "preprocessor" parser test to increase coverage X-Git-Tag: 0.39.4~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d8a753f4ce48a01da2b2faf9e2849559a9516d8;p=thirdparty%2Fvala.git tests: Add "preprocessor" parser test to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 4e75436d2..a93a6f577 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -323,6 +323,7 @@ TESTS = \ annotations/noaccessormethod.test \ parser/assignment.vala \ parser/do-statement.vala \ + parser/preprocessor.vala \ parser/switch-statement.vala \ parser/template.vala \ parser/tuple.vala \ diff --git a/tests/parser/preprocessor.vala b/tests/parser/preprocessor.vala new file mode 100644 index 000000000..de71b2a1c --- /dev/null +++ b/tests/parser/preprocessor.vala @@ -0,0 +1,9 @@ +void main () { +#if VALA_NEVER_SET_FOO + assert_not_reached (); +#elif VALA_NEVER_SET_BAR + assert_not_reached (); +#else + assert (true); +#endif +}