From: Rico Tzschichholz Date: Sat, 23 Oct 2021 13:27:12 +0000 (+0200) Subject: tests: Add "no error type in catch" tests to increase coverage X-Git-Tag: 0.52.7~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b1bf7a95319cf768ea8fe750a368c3824d27aef;p=thirdparty%2Fvala.git tests: Add "no error type in catch" tests to increase coverage --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 8bd6584a2..fb5f4f3a1 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -622,6 +622,7 @@ TESTS = \ objects/with-nested-unambigous-signal.vala \ errors/catch-error-code.vala \ errors/catch-in-finally.vala \ + errors/catch-no-error-type.test \ errors/default-gtype.vala \ errors/errors.vala \ errors/errorcode.vala \ diff --git a/tests/errors/catch-no-error-type.test b/tests/errors/catch-no-error-type.test new file mode 100644 index 000000000..89df9b5ff --- /dev/null +++ b/tests/errors/catch-no-error-type.test @@ -0,0 +1,7 @@ +Invalid Code + +void main () { + try { + } catch (int e) { + } +}