[vala/0.46] tests: Add invalid "silent cast of array" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.46] tests: Add invalid "silent cast of array" test to increase coverage
- Date: Wed, 30 Oct 2019 07:45:14 +0000 (UTC)
commit de90c8014d0f75523ce9b4b765259effb44cb7e5
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Wed Oct 23 15:30:40 2019 +0200
tests: Add invalid "silent cast of array" test to increase coverage
tests/Makefile.am | 1 +
tests/arrays/cast-silent-invalid.test | 6 ++++++
2 files changed, 7 insertions(+)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 3ff5dfa01..7c0926498 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -70,6 +70,7 @@ TESTS = \
basic-types/bug777697.test \
basic-types/bug787152.vala \
basic-types/bug788775.vala \
+ arrays/cast-silent-invalid.test \
arrays/class-field-length-cname.vala \
arrays/expression-bracket.test \
arrays/field-global-length-cname.vala \
diff --git a/tests/arrays/cast-silent-invalid.test b/tests/arrays/cast-silent-invalid.test
new file mode 100644
index 000000000..6e7361567
--- /dev/null
+++ b/tests/arrays/cast-silent-invalid.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+ void* foo = null;
+ unowned int[] bar = foo as int[];
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]