Re: X stub server for headless testing?



Brett Kosinski said:
does anybody know of a stub server or stub library would be suitable?

Xvfb is your friend. :)


if we're friends we're apparently not very close.

command:
    Xvfb :1 -screen 0 1600x1200x8 -ac

if i run something simple like:
    DISPLAY=:1.0 xload

or something a little more complex like:
    DISPLAY=:1.0 wmaker

running xwud when i've put a -fbdir on shows that the above two programs are
working correctly.

i get this when i run test in the Gtk2 dir with:

    DISPLAY=:1.0 make test

----------------------------------------------------------
t/01.GtkWindow............ok 64/80The program '01.GtkWindow.t' received an X
Window System error.
This probably reflects a bug in the program.
The error was 'BadValue (integer parameter out of range for operation)'.
  (Details: serial 368 error_code 2 request_code 129 minor_code 5)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
Could not init font path element /usr/X11R6/lib/X11/fonts/CID/, removing from
list!
t/01.GtkWindow............dubious
        Test returned status 1 (wstat 256, 0x100)
DIED. FAILED tests 65-80
        Failed 16/80 tests, 80.00% okay
----------------------------------------------------------

it's not the perl wrappers b/c doing the following (something i knew used the
gtk2 toolkit):

    DISPLAY=:1.0 glade-2

gets the same error.

obviously this isn't the correct place for this message, but just found it
interesting. not matter what i run that uses gtk2 the same things happens. oh
well. it was a good idea.

-rm



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]