diff options
author | petermayo@chromium.org <petermayo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-14 18:44:19 +0000 |
---|---|---|
committer | petermayo@chromium.org <petermayo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-14 18:44:19 +0000 |
commit | aeef559f737ef6305120a2e941dd407d881c3704 (patch) | |
tree | 60f541b0e3a005b7610cc0ea1a249ed3bdb7c8b4 /tools/xdisplaycheck | |
parent | 5571774f25d23865e9fa4046f513090bc4180331 (diff) | |
download | chromium_src-aeef559f737ef6305120a2e941dd407d881c3704.zip chromium_src-aeef559f737ef6305120a2e941dd407d881c3704.tar.gz chromium_src-aeef559f737ef6305120a2e941dd407d881c3704.tar.bz2 |
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
Diffstat (limited to 'tools/xdisplaycheck')
-rw-r--r-- | tools/xdisplaycheck/xdisplaycheck.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/xdisplaycheck/xdisplaycheck.cc b/tools/xdisplaycheck/xdisplaycheck.cc index 1731788..6623153 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. |