summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2017-08-23 07:52:10 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2017-08-23 07:52:10 +0200
commit2d390c52655883414ff4d1e220824b0d72018849 (patch)
treec996a6de9f29ca2114873c77c79faa2fdf095a50
parentc78d70fc5c3bc7740be209261d40513954acad1f (diff)
downloadvala-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.test4
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);