[vala/0.36] tests: Fix dbus/filedescriptor-errors.test



commit acc800c382f04b2d949741b08232d400ef0d510a
Author: Rico Tzschichholz <ricotz ubuntu com>
Date:   Wed Aug 23 07:52:10 2017 +0200

    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.

 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 96f28cf..ad30816 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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]