[PATCH xorg-gtest 07/16] xserver: add Start() for default binary path
Peter Hutterer
peter.hutterer at who-t.net
Mon Jul 2 23:44:48 PDT 2012
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
include/xorg/gtest/xorg-gtest-xserver.h | 4 ++++
src/xserver.cpp | 4 ++++
2 files changed, 8 insertions(+)
diff --git a/include/xorg/gtest/xorg-gtest-xserver.h b/include/xorg/gtest/xorg-gtest-xserver.h
index 821b01f..33331cd 100644
--- a/include/xorg/gtest/xorg-gtest-xserver.h
+++ b/include/xorg/gtest/xorg-gtest-xserver.h
@@ -47,6 +47,10 @@ class XServer : public xorg::testing::Process {
XServer();
/**
+ * Start a new server, using the default binary
+ */
+ void Start(void);
+ /**
* Start a new server
* @param [in] program Path to the XServer binary
*/
diff --git a/src/xserver.cpp b/src/xserver.cpp
index bd1e2f9..160eadc 100644
--- a/src/xserver.cpp
+++ b/src/xserver.cpp
@@ -289,6 +289,10 @@ void xorg::testing::XServer::TestStartup(void) {
}
+void xorg::testing::XServer::Start(void) {
+ Start(d_->path_to_server);
+}
+
void xorg::testing::XServer::Start(std::string &program) {
TestStartup();
Process::Start(program, program.c_str(),
--
1.7.10.4
More information about the xorg-devel
mailing list