[vala/staging] tests: Add "no error type in catch" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] tests: Add "no error type in catch" tests to increase coverage
- Date: Sat, 23 Oct 2021 13:51:19 +0000 (UTC)
commit eae660f3065f2557cc9056046b677b509691331d
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 23 15:27:12 2021 +0200
tests: Add "no error type in catch" tests to increase coverage
tests/Makefile.am | 1 +
tests/errors/catch-no-error-type.test | 7 +++++++
2 files changed, 8 insertions(+)
---
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) {
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]