Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(85)

Side by Side Diff: tools/xdisplaycheck/xdisplaycheck.cc

Issue 19962006: Disable LeakSanitizer for xdisplaycheck. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This is a small program that tries to connect to the X server. It 5 // This is a small program that tries to connect to the X server. It
6 // continually retries until it connects or 30 seconds pass. If it fails 6 // continually retries until it connects or 30 seconds pass. If it fails
7 // to connect to the X server or fails to find needed functiona, it returns 7 // to connect to the X server or fails to find needed functiona, it returns
8 // an error code of -1. 8 // an error code of -1.
9 // 9 //
10 // This is to help verify that a useful X server is available before we start 10 // This is to help verify that a useful X server is available before we start
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 XIDeviceInfo* devices = 99 XIDeviceInfo* devices =
100 XIQueryDevice(scoped_display.display(), XIAllDevices, &count); 100 XIQueryDevice(scoped_display.display(), XIAllDevices, &count);
101 if (devices) 101 if (devices)
102 XIFreeDeviceInfo(devices); 102 XIFreeDeviceInfo(devices);
103 103
104 fprintf(stderr, 104 fprintf(stderr,
105 "XInput2 verified initially sane on %s.\n", XDisplayName(NULL)); 105 "XInput2 verified initially sane on %s.\n", XDisplayName(NULL));
106 #endif 106 #endif
107 return 0; 107 return 0;
108 } 108 }
109
110 #if defined(LEAK_SANITIZER)
111 // XOpenDisplay leaks memory if it takes more than one try to connect. This
112 // causes LSan bots to fail. We don't care about memory leaks in xdisplaycheck
113 // anyway, so just disable LSan completely.
114 extern "C" int __lsan_is_turned_off() { return 1; }
115 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698