[vala/staging] tests: Split "Variant (de)serialization" test to trigger one error at a time



commit 02f7568cafe7892170ac0b53e6488632ef072387
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 4e2110400..800bb6db8 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -63,7 +63,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]