diff options
author | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-23 07:52:10 +0200 |
---|---|---|
committer | Rico Tzschichholz <ricotz@ubuntu.com> | 2017-08-23 07:52:10 +0200 |
commit | 2d390c52655883414ff4d1e220824b0d72018849 (patch) | |
tree | c996a6de9f29ca2114873c77c79faa2fdf095a50 | |
parent | c78d70fc5c3bc7740be209261d40513954acad1f (diff) | |
download | vala-2d390c52655883414ff4d1e220824b0d72018849.tar.gz |
tests: Fix dbus/filedescriptor-errors.test
Avoid the creation of a conflicting "pipe" symbol which is defined
by unistd.h while using posix.
This has been hidden by the current test framework, testrunner.sh,
because that script adds a namespace around each test.
-rw-r--r-- | tests/dbus/filedescriptor-errors.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/dbus/filedescriptor-errors.test b/tests/dbus/filedescriptor-errors.test index 96f28cff9..ad3081653 100644 --- a/tests/dbus/filedescriptor-errors.test +++ b/tests/dbus/filedescriptor-errors.test @@ -8,7 +8,7 @@ interface Test : Object { public abstract string test (UnixOutputStream output_stream) throws IOError; } -void pipe (out UnixInputStream input, out UnixOutputStream output) throws IOError { +void create_streams (out UnixInputStream input, out UnixOutputStream output) throws IOError { int pipefd[2]; if (Posix.pipe (pipefd) < 0) { throw new IOError.FAILED ("Pipe creation failed"); @@ -23,7 +23,7 @@ void main () { UnixInputStream i; UnixOutputStream o; - pipe (out i, out o); + create_streams (out i, out o); try { test.test (o); |