diff options
Diffstat (limited to 'tests/profiling/GatordMockMain.cpp')
-rw-r--r-- | tests/profiling/GatordMockMain.cpp | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/tests/profiling/GatordMockMain.cpp b/tests/profiling/GatordMockMain.cpp index 91fa907795..b8edeb2b2d 100644 --- a/tests/profiling/GatordMockMain.cpp +++ b/tests/profiling/GatordMockMain.cpp @@ -4,8 +4,7 @@ // #include "CommandLineProcessor.hpp" - -#include <cstdlib> +#include "GatordMockService.hpp" int main(int argc, char *argv[]) { @@ -14,5 +13,15 @@ int main(int argc, char *argv[]) { return EXIT_FAILURE; } + armnn::gatordmock::GatordMockService mockService; + if (!mockService.OpenListeningSocket(cmdline.GetUdsNamespace())) + { + return EXIT_FAILURE; + } + int clientFd = mockService.BlockForOneClient(); + if (-1 == clientFd) + { + return EXIT_FAILURE; + } return EXIT_SUCCESS; } |