diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-23 15:27:12 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2021-10-24 12:15:08 +0200 |
commit | 46a8425cd5957e7bd74a8fc76662fbeb5fbdcaa3 (patch) | |
tree | 6325620ea291904308fb3b32f5047c6e824ec57c | |
parent | 034a2954eab699988b94a8e248beb1a9a7e154cb (diff) | |
download | vala-46a8425cd5957e7bd74a8fc76662fbeb5fbdcaa3.tar.gz |
tests: Add "no error type in catch" tests to increase coverage
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/errors/catch-no-error-type.test | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 6ba6e3b43..de919b23b 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -633,6 +633,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) { + } +} |