summaryrefslogtreecommitdiffstats
path: root/o3d/tests/common/linux/testing_common.cc
diff options
context:
space:
mode:
Diffstat (limited to 'o3d/tests/common/linux/testing_common.cc')
-rw-r--r--o3d/tests/common/linux/testing_common.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/o3d/tests/common/linux/testing_common.cc b/o3d/tests/common/linux/testing_common.cc
index d563ce6..1fe628d 100644
--- a/o3d/tests/common/linux/testing_common.cc
+++ b/o3d/tests/common/linux/testing_common.cc
@@ -55,11 +55,14 @@ o3d::DisplayWindow* g_display_window = NULL;
Display *g_display = NULL;
Window g_window = 0;
+#if !defined(RENDERER_CAIRO)
static char kOffScreenRenderer[] = "O3D_D3D9_OFF_SCREEN";
+#endif
extern int test_main(int argc, char **argv);
int main(int argc, char *argv[]) {
+#if !defined(RENDERER_CAIRO)
std::string error;
if (!o3d::RendererInstallCheck(&error)) {
return false;
@@ -168,4 +171,7 @@ int main(int argc, char *argv[]) {
::XCloseDisplay(g_display);
return ret;
+#else
+ return 1;
+#endif
}