Add more interesting return codes to xdisplaycheck.

In isolate tests we only display the status when failing.

R=maruel@chromium.org, sadrul@chromium.org
BUG=None
TEST=isolated runs, local

Review URL: https://codereview.chromium.org/387143004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@282986 0039d316-1c4b-4281-b951-d872f2087c98
parent 5571774f
......@@ -84,14 +84,14 @@ int main(int argc, char* argv[]) {
&event, &err)) {
fprintf(stderr,
"Failed to get XInputExtension on %s.\n", XDisplayName(NULL));
return -1;
return -2;
}
int major = 2, minor = 0;
if (XIQueryVersion(scoped_display.display(), &major, &minor) == BadRequest) {
fprintf(stderr,
"Server does not have XInput2 on %s.\n", XDisplayName(NULL));
return -1;
return -3;
}
// Ask for the list of devices. This can cause some Xvfb to crash.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment