]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
tests: Fix dbus/filedescriptor-errors.test
authorRico Tzschichholz <ricotz@ubuntu.com>
Wed, 23 Aug 2017 05:52:10 +0000 (07:52 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sun, 27 Aug 2017 08:31:56 +0000 (10:31 +0200)
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.

tests/dbus/filedescriptor-errors.test

index 96f28cff986013cbf6858fd0362e200782428817..ad3081653b00cd67d4995f42bf835855b7ac0f66 100644 (file)
@@ -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);