[vala/staging: 4/4] tests: Add "finish_instance = false" compilation test-case
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging: 4/4] tests: Add "finish_instance = false" compilation test-case
- Date: Mon, 6 Mar 2017 08:41:30 +0000 (UTC)
commit f109eae333f586799d6d946ca389b905c1939989
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Mon Mar 6 08:51:51 2017 +0100
tests: Add "finish_instance = false" compilation test-case
Make use of IOSteam.splice_async()
https://bugzilla.gnome.org/show_bug.cgi?id=710103
tests/Makefile.am | 1 +
tests/asynchronous/bug710103.vala | 13 +++++++++++++
2 files changed, 14 insertions(+), 0 deletions(-)
---
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 67baf08..bbdb321 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -246,6 +246,7 @@ TESTS = \
asynchronous/bug654337.vala \
asynchronous/bug659886.vala \
asynchronous/bug661961.vala \
+ asynchronous/bug710103.vala \
asynchronous/bug742621.vala \
asynchronous/bug762819.vala \
asynchronous/bug777242.vala \
diff --git a/tests/asynchronous/bug710103.vala b/tests/asynchronous/bug710103.vala
new file mode 100644
index 0000000..0a2b114
--- /dev/null
+++ b/tests/asynchronous/bug710103.vala
@@ -0,0 +1,13 @@
+void iostream () {
+ IOStream? is0 = null;
+ IOStream? is1 = null;
+ is0.splice_async.begin (is1, IOStreamSpliceFlags.NONE, Priority.DEFAULT, null, (obj, res) => {
+ try {
+ is0.splice_async.end (res);
+ } catch (Error e) {
+ }
+ });
+}
+
+void main () {
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]