From aeef559f737ef6305120a2e941dd407d881c3704 Mon Sep 17 00:00:00 2001 From: "petermayo@chromium.org" Date: Mon, 14 Jul 2014 18:44:19 +0000 Subject: [PATCH] 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 --- tools/xdisplaycheck/xdisplaycheck.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xdisplaycheck/xdisplaycheck.cc b/tools/xdisplaycheck/xdisplaycheck.cc index 173178812b47..6623153a846c 100644 --- a/tools/xdisplaycheck/xdisplaycheck.cc +++ b/tools/xdisplaycheck/xdisplaycheck.cc @@ -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. -- 2.11.4.GIT