summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2012-03-13 11:32:02 -0700
committerChase Douglas <chase.douglas@canonical.com>2012-03-16 15:23:54 -0700
commit6d0cd228d5ea5ff734f3bc1754d0dfbb93e6d1b4 (patch)
tree17f795e67d9241cb4fd036d5015b773e493b6756
parent4acb16f939c73dc081775e29eb4089e4184fffbf (diff)
Allow user to override default Xorg server binary
This can be accomplished by compiling xorg-gtest with -DDEFAULT_XORG_SERVER=path/to/Xorg. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-By: Christopher Halse Rogers <christopher.halse.rogers@canonical.com>
-rw-r--r--src/defines.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/defines.h b/src/defines.h
index 3bfc1da..3fb3304 100644
--- a/src/defines.h
+++ b/src/defines.h
@@ -2,7 +2,11 @@
#define XORGGTEST_DEFINES
#define DEFAULT_XORG_LOGFILE "/tmp/Xorg.GTest.log"
-#define DEFAULT_XORG_SERVER "Xorg"
#define DEFAULT_DISPLAY 133
+/* Allow user to override default Xorg server*/
+#ifndef DEFAULT_XORG_SERVER
+#define DEFAULT_XORG_SERVER "Xorg"
+#endif
+
#endif