Index: chrome/test/base/chrome_test_suite.cc |
=================================================================== |
--- chrome/test/base/chrome_test_suite.cc (revision 156845) |
+++ chrome/test/base/chrome_test_suite.cc (working copy) |
@@ -61,14 +61,15 @@ |
bool IsCrosPythonProcess() { |
#if defined(OS_CHROMEOS) |
char buf[80]; |
- int num_read = readlink("/proc/self/exe", buf, sizeof(buf) - 1); |
+ int num_read = readlink(base::kProcSelfExe, buf, sizeof(buf) - 1); |
if (num_read == -1) |
return false; |
buf[num_read] = 0; |
const char kPythonPrefix[] = "/python"; |
return !strncmp(strrchr(buf, '/'), kPythonPrefix, sizeof(kPythonPrefix) - 1); |
+#else |
+ return false; |
#endif // defined(OS_CHROMEOS) |
- return false; |
} |
// In many cases it may be not obvious that a test makes a real DNS lookup. |