test: one Xvfb launcher and one daemon for the live tests
The XIM test carried its own Xvfb and daemon spawner, its own child struct, log files and process-group teardown, and the GTK test a second Xvfb launcher, because live.c's startdaemon always unset DISPLAY. Live now carries the display its own startxvfb reports, startdaemon passes it on, and both tests use the shared pair: 300 lines fewer, one place that knows how a child is started, watched, and stopped.
This commit is contained in:
@@ -39,6 +39,7 @@ struct Live
|
||||
char home[320];
|
||||
char socket[384];
|
||||
char addrfile[512];
|
||||
char display[32];
|
||||
};
|
||||
|
||||
extern char *testname;
|
||||
@@ -54,6 +55,7 @@ int livesetup(Live*, char*);
|
||||
int liveclean(Live*);
|
||||
|
||||
void daemoninit(Daemon*, char*);
|
||||
int startxvfb(Live*, Daemon*, char*);
|
||||
int startdaemon(Live*, Daemon*, char*, char*);
|
||||
int waitready(Live*, Daemon*, char*, size_t);
|
||||
int daemonalive(Daemon*);
|
||||
|
||||
Reference in New Issue
Block a user