[vala/wip/tests] tests: Add various regression "codegen" tests to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/tests] tests: Add various regression "codegen" tests to increase coverage
- Date: Tue, 6 Feb 2018 09:02:34 +0000 (UTC)
commit e3735fb071fa0cf74150bbbbbd7c81f88a52c076
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Tue Feb 6 09:01:12 2018 +0100
tests: Add various regression "codegen" tests to increase coverage
tests/Makefile.am | 8 ++++++++
tests/delegates/bug519949.test | 10 ++++++++++
tests/delegates/bug632017.test | 7 +++++++
tests/methods/bug620673.test | 8 ++++++++
tests/objects/bug541728.test | 8 ++++++++
tests/objects/bug564011.test | 9 +++++++++
tests/objects/bug564090.test | 13 +++++++++++++
tests/objects/bug574146.test | 8 ++++++++
tests/objects/bug585344.test | 11 +++++++++++
9 files changed, 82 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 358b586..41449cd 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -79,6 +79,7 @@ TESTS = \
methods/bug599892.vala \
methods/bug613483.vala \
methods/bug615450.test \
+ methods/bug620673.test \
methods/bug620673.vala \
methods/bug622570.vala \
methods/bug626783.vala \
@@ -201,10 +202,12 @@ TESTS = \
delegates/delegates.vala \
delegates/delegates-error.test \
delegates/reference_transfer.vala \
+ delegates/bug519949.test \
delegates/bug539166.vala \
delegates/bug595610.vala \
delegates/bug595639.vala \
delegates/bug598869.test \
+ delegates/bug632017.test \
delegates/bug638415.vala \
delegates/bug639751.vala \
delegates/bug659778.vala \
@@ -232,7 +235,12 @@ TESTS = \
objects/test-026.vala \
objects/test-029.vala \
objects/test-034.vala \
+ objects/bug541728.test \
+ objects/bug564011.test \
+ objects/bug564090.test \
objects/bug566909.vala \
+ objects/bug574146.test \
+ objects/bug585344.test \
objects/bug587905.test \
objects/bug588203.vala \
objects/bug589928.vala \
diff --git a/tests/delegates/bug519949.test b/tests/delegates/bug519949.test
new file mode 100644
index 0000000..a8283e4
--- /dev/null
+++ b/tests/delegates/bug519949.test
@@ -0,0 +1,10 @@
+Invalid Code
+
+delegate void FooFunc ();
+
+class Foo<G> {
+}
+
+void main () {
+ var foo = new Foo<FooFunc> ();
+}
diff --git a/tests/delegates/bug632017.test b/tests/delegates/bug632017.test
new file mode 100644
index 0000000..afc8362
--- /dev/null
+++ b/tests/delegates/bug632017.test
@@ -0,0 +1,7 @@
+Invalid Code
+
+delegate void FooFunc ();
+
+void main() {
+ var array = new FooFunc[3];
+}
diff --git a/tests/methods/bug620673.test b/tests/methods/bug620673.test
new file mode 100644
index 0000000..26fbcbd
--- /dev/null
+++ b/tests/methods/bug620673.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+void foo () {
+ va_list args = va_list ();
+}
+
+void main () {
+}
diff --git a/tests/objects/bug541728.test b/tests/objects/bug541728.test
new file mode 100644
index 0000000..37fb72b
--- /dev/null
+++ b/tests/objects/bug541728.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+class Foo {
+ public string bar { get; construct; }
+}
+
+void main () {
+}
diff --git a/tests/objects/bug564011.test b/tests/objects/bug564011.test
new file mode 100644
index 0000000..1bf9d32
--- /dev/null
+++ b/tests/objects/bug564011.test
@@ -0,0 +1,9 @@
+Invalid Code
+
+class Foo {
+ static ~Foo () {
+ }
+}
+
+void main () {
+}
diff --git a/tests/objects/bug564090.test b/tests/objects/bug564090.test
new file mode 100644
index 0000000..6e62a4a
--- /dev/null
+++ b/tests/objects/bug564090.test
@@ -0,0 +1,13 @@
+Invalid Code
+
+[Compact]
+class Foo {
+ class int x = 1;
+
+ class construct {
+ x = 2;
+ }
+}
+
+void main () {
+}
diff --git a/tests/objects/bug574146.test b/tests/objects/bug574146.test
new file mode 100644
index 0000000..40c3e87
--- /dev/null
+++ b/tests/objects/bug574146.test
@@ -0,0 +1,8 @@
+Invalid Code
+
+class Foo : Object {
+ public int[] bar { get; construct; }
+}
+
+void main () {
+}
diff --git a/tests/objects/bug585344.test b/tests/objects/bug585344.test
new file mode 100644
index 0000000..68559a6
--- /dev/null
+++ b/tests/objects/bug585344.test
@@ -0,0 +1,11 @@
+Invalid Code
+
+[Compact]
+class Foo {
+}
+
+void main () {
+ var foo = new Foo ();
+ if (foo is Foo) {
+ }
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]