[vala/0.52] tests: Split "Variant (de)serialization" test to trigger one error at a time
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.52] tests: Split "Variant (de)serialization" test to trigger one error at a time
- Date: Tue, 19 Oct 2021 08:00:54 +0000 (UTC)
commit 52ecd065b8c6adac8407686b4c0e1c8e971b5e18
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Oct 18 12:23:21 2021 +0200
tests: Split "Variant (de)serialization" test to trigger one error at a time
tests/Makefile.am | 3 ++-
...ariants-hashtable-deserialize-missing-type-arguments.test | 6 ++++++
.../gvariants-hashtable-missing-type-arguments.test | 12 ------------
...gvariants-hashtable-serialize-missing-type-arguments.test | 6 ++++++
4 files changed, 14 insertions(+), 13 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 11270fcb2..8ebd33994 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -62,7 +62,8 @@ TESTS = \
basic-types/glists_remove.vala \
basic-types/gptrarray.vala \
basic-types/gvariants.vala \
- basic-types/gvariants-hashtable-missing-type-arguments.test \
+ basic-types/gvariants-hashtable-deserialize-missing-type-arguments.test \
+ basic-types/gvariants-hashtable-serialize-missing-type-arguments.test \
basic-types/gvariants-unboxing-safe.vala \
basic-types/null.vala \
basic-types/bug570846.test \
diff --git a/tests/basic-types/gvariants-hashtable-deserialize-missing-type-arguments.test
b/tests/basic-types/gvariants-hashtable-deserialize-missing-type-arguments.test
new file mode 100644
index 000000000..bdd8cbdf0
--- /dev/null
+++ b/tests/basic-types/gvariants-hashtable-deserialize-missing-type-arguments.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+ Variant v = null;
+ var foo = (HashTable) v;
+}
diff --git a/tests/basic-types/gvariants-hashtable-serialize-missing-type-arguments.test
b/tests/basic-types/gvariants-hashtable-serialize-missing-type-arguments.test
new file mode 100644
index 000000000..41767492f
--- /dev/null
+++ b/tests/basic-types/gvariants-hashtable-serialize-missing-type-arguments.test
@@ -0,0 +1,6 @@
+Invalid Code
+
+void main () {
+ HashTable foo = null;
+ Variant v = foo;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]