aboutsummaryrefslogtreecommitdiffstats
path: root/test/test-platform/TestPlatform.h
diff options
context:
space:
mode:
authorFrédéric Boisnard <fredericx.boisnard@intel.com>2014-01-10 18:46:10 +0100
committerDavid Wagner <david.wagner@intel.com>2014-02-12 17:04:18 +0100
commita472fec381e7abc3d9e1384d1b7581a9e304a16c (patch)
tree4459838fa576d69e41d792a828fb73731cd128cf /test/test-platform/TestPlatform.h
parent6c55e9a1829f613f37df4e5fd0dbdde006a76707 (diff)
downloadexternal_parameter-framework-a472fec381e7abc3d9e1384d1b7581a9e304a16c.zip
external_parameter-framework-a472fec381e7abc3d9e1384d1b7581a9e304a16c.tar.gz
external_parameter-framework-a472fec381e7abc3d9e1384d1b7581a9e304a16c.tar.bz2
Allow starting test-platform as a Daemon
BZ: 151780 Currently, test-platform does not return when it is launched. In particular, one has to try to connect to it in order to know if it has correctly been initialized. Added a new '-d' option to test-platform to start it as a daemon: test-platform [-d] <file path> [port number, default 5001] When test-platform is started as a daemon, a child process is created and the main process immediatly returns its status. Change-Id: I70a33691909c958904cf50d156a563b998f92657 Signed-off-by: Frédéric Boisnard <fredericx.boisnard@intel.com>
Diffstat (limited to 'test/test-platform/TestPlatform.h')
-rw-r--r--test/test-platform/TestPlatform.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/test-platform/TestPlatform.h b/test/test-platform/TestPlatform.h
index 8673e9d..9198ef8 100644
--- a/test/test-platform/TestPlatform.h
+++ b/test/test-platform/TestPlatform.h
@@ -150,6 +150,9 @@ private:
// Remote Processor Server
CRemoteProcessorServer* _pRemoteProcessorServer;
+ // Port number for the server socket
+ int _portNumber;
+
// Semaphore used by calling thread to avoid exiting
sem_t& _exitSemaphore;
};