[vala/staging] 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/staging] tests: Update field "owned to unowned" test to increase coverage
- Date: Sat, 22 Sep 2018 08:45:45 +0000 (UTC)
commit 5c4110e231ca384730dd0f60d7f9b59c9ab7831f
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]