[vala/0.42] tests: Update field "owned to unowned" test to increase coverage
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/0.42] tests: Update field "owned to unowned" test to increase coverage
- Date: Sun, 23 Sep 2018 09:07:00 +0000 (UTC)
commit 3abc4aa30e93c183c0c1d14443f800e058a3922f
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Sep 22 08:31:51 2018 +0200
tests: Update field "owned to unowned" test to increase coverage
tests/Makefile.am | 2 +-
.../{field-invalid-assignment.test => field-owned-to-unowned.test} | 3 +--
2 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index eda642ae2..acbb59986 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -523,9 +523,9 @@ TESTS = \
semantic/field-external.test \
semantic/field-incompatible.test \
semantic/field-interface.test \
- semantic/field-invalid-assignment.test \
semantic/field-namespace-owned.test \
semantic/field-non-constant.test \
+ semantic/field-owned-to-unowned.test \
semantic/field-void.test \
semantic/floating-reference.vala \
semantic/foreach-iterator-args.test \
diff --git a/tests/semantic/field-invalid-assignment.test b/tests/semantic/field-owned-to-unowned.test
similarity index 61%
rename from tests/semantic/field-invalid-assignment.test
rename to tests/semantic/field-owned-to-unowned.test
index d9f41f408..8cfaace11 100644
--- a/tests/semantic/field-invalid-assignment.test
+++ b/tests/semantic/field-owned-to-unowned.test
@@ -4,8 +4,7 @@ string get_foo () {
return "foo";
}
-unowned string field;
+unowned string foo = get_foo ();
void main () {
- field = get_foo ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]