]> rtime.felk.cvut.cz Git - frescor/forb.git/blobdiff - src/tests/discovery.c
Make proto_inet usable also as local protocol
[frescor/forb.git] / src / tests / discovery.c
index 0d388feccde0bb95ec40f319a056874eb82cd978..ddb7996cf9d42173e57e5233f62b7d2e528e9f79 100644 (file)
 #include "../proto.h"
 #include <error.h>
 #include <fosa.h>
+#include <stdio.h>
 
 #define NUM_ORBS 5
 
-#ifndef CONFIG_FORB_PROTO_UNIX
-#error This test should only work with UNIX protocol enabled.
+#if !CONFIG_FORB_PROTO_UNIX && !CONFIG_FORB_PROTO_INET_DEFAULT
+#error This test should only work if there is some local protocol enabled.
 #endif
 
 int main(int argc, char *argv[])
@@ -111,5 +112,6 @@ int main(int argc, char *argv[])
                }
        }
 
+       printf("OK\n");
        return 0;
 }