summaryrefslogtreecommitdiffstats
path: root/Tests/X11
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-06 13:52:25 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2002-11-06 13:52:25 (GMT)
commitbde5ee3f44d58b6a2c2dc1c61be905cccf51b24f (patch)
tree5a370c8a330177db951665da773674df5dd050cd /Tests/X11
parent37b850931078644bd5fca7d7d5b0116139bdd522 (diff)
downloadCMake-bde5ee3f44d58b6a2c2dc1c61be905cccf51b24f.zip
CMake-bde5ee3f44d58b6a2c2dc1c61be905cccf51b24f.tar.gz
CMake-bde5ee3f44d58b6a2c2dc1c61be905cccf51b24f.tar.bz2
Try to fix test
Diffstat (limited to 'Tests/X11')
-rw-r--r--Tests/X11/X11.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/Tests/X11/X11.c b/Tests/X11/X11.c
index 7804352..b802ed8 100644
--- a/Tests/X11/X11.c
+++ b/Tests/X11/X11.c
@@ -1,33 +1,17 @@
+#include "stdio.h"
#ifdef CMAKE_HAS_X
#include <X11/Xlib.h>
#include <X11/Xutil.h>
-#include <stdlib.h>
int main()
{
- Display *mydisplay;
- char* display = ":0";
-
-
- if ( getenv("DISPLAY") )
- {
- display = getenv("DISPLAY");
- }
-
- mydisplay=XOpenDisplay(display);
- if ( mydisplay )
- {
- XCloseDisplay(mydisplay);
- }
+ printf("There is X on this computer\n");
return 0;
}
-
#else
-#include "stdio.h"
-
int main()
{
printf("No X on this computer\n");