diff options
Diffstat (limited to 'xc/lib/xtrans/dpytest.c')
-rw-r--r-- | xc/lib/xtrans/dpytest.c | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/xc/lib/xtrans/dpytest.c b/xc/lib/xtrans/dpytest.c deleted file mode 100644 index 327f6f7eb..000000000 --- a/xc/lib/xtrans/dpytest.c +++ /dev/null @@ -1,103 +0,0 @@ -/* $XConsortium$ */ - -#include <stdio.h> -#include <X11/Xlib.h> - -char *test_displays[] = { - ":0", - ":1", - ":2", - "unix:0", - "unix:1", - "unix:2", - "local:0", - "local:1", - "local:2", - THISHOST":0", - THISHOST":1", - THISHOST":2", - "local/:0", - "local/:1", - "local/:2", - "local/"THISHOST":0", - "local/"THISHOST":1", - "local/"THISHOST":2", - "tcp/"THISHOST":0", - "tcp/"THISHOST":1", - "tcp/"THISHOST":2", - "inet/"THISHOST":0", - "inet/"THISHOST":1", -#ifdef STREAMSCONN - "tli/"THISHOST":0", - "tli/"THISHOST":1", -#endif -#ifdef DNETCONN - "::0", - "::1", - THISHOST"::0", - THISHOST"::1", - "local/::0", - "local/::1", - "decnet/"THISHOST"::0", - "decnet/"THISHOST"::1", - "decnet/"THISHOST":0", - "decnet/"THISHOST":1", -#endif -#ifdef LOCALCONN - "pts/"THISHOST":0", - "pts/"THISHOST":1", - "named/"THISHOST":0", - "named/"THISHOST":1", - "ics/"THISHOST":0", - "ics/"THISHOST":1", - "sco/"THISHOST":0", - "sco/"THISHOST":1", -#endif - }; - -#define NUMDISPLAYS (sizeof(test_displays)/sizeof(char *)) - -int numpassed=0; -int numfailed=0; - -main(argc, argv) - -int argc; -char *argv[]; - -{ -int i, count; -Display *disp; -char **displays; - -if (argc > 1) -{ - count = argc - 1; - displays = &argv[1]; -} -else -{ - count = NUMDISPLAYS; - displays = test_displays; -} - -for( i=0; i<count; i++ ) - { - fprintf(stderr,"** Opening %s\n",displays[i]); - disp=XOpenDisplay(displays[i]); - if( disp == NULL ) - { - fprintf(stderr,"%%%% Failed to open %s\n",displays[i]); - numfailed++; - } - else - { - numpassed++; - fprintf(stderr,"** Successful\n"); - XCloseDisplay(disp); - } - fprintf(stderr,"\n"); - } -fprintf(stderr,"Pass: %d\tFail: %d\tTotal: %d\n", - numpassed, numfailed, numpassed+numfailed ); -} |