]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Add invalid "construct without GObject" test to increase coverage
authorRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 15:47:06 +0000 (17:47 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Fri, 21 Sep 2018 15:47:06 +0000 (17:47 +0200)
tests/Makefile.am
tests/semantic/construct-without-gobject.test [new file with mode: 0644]

index 2a780a019a4ebc4f4c49d317746f08d475d6fbe5..d41f7ccb4930e3a5b62f2134c877a2f6f562a9fc 100644 (file)
@@ -510,6 +510,7 @@ TESTS = \
        semantic/constant-value-missing.test \
        semantic/constant-value-type.test \
        semantic/constant-void.test \
+       semantic/construct-without-gobject.test \
        semantic/delegate-too-few-type-arguments.test \
        semantic/delegate-too-many-type-arguments.test \
        semantic/enum-empty.test \
diff --git a/tests/semantic/construct-without-gobject.test b/tests/semantic/construct-without-gobject.test
new file mode 100644 (file)
index 0000000..ac500d7
--- /dev/null
@@ -0,0 +1,9 @@
+Invalid Code
+
+class Foo {
+       construct {
+       }
+}
+
+void main () {
+}