| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "CrashHandler.h" | 8 #include "CrashHandler.h" |
| 9 #include "OverwriteLine.h" | 9 #include "OverwriteLine.h" |
| 10 #include "Resources.h" | 10 #include "Resources.h" |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 } | 146 } |
| 147 SkString resourcePath = GetResourcePath(); | 147 SkString resourcePath = GetResourcePath(); |
| 148 if (!resourcePath.isEmpty()) { | 148 if (!resourcePath.isEmpty()) { |
| 149 header.appendf(" --resourcePath %s", resourcePath.c_str()); | 149 header.appendf(" --resourcePath %s", resourcePath.c_str()); |
| 150 } | 150 } |
| 151 #ifdef SK_DEBUG | 151 #ifdef SK_DEBUG |
| 152 header.append(" SK_DEBUG"); | 152 header.append(" SK_DEBUG"); |
| 153 #else | 153 #else |
| 154 header.append(" SK_RELEASE"); | 154 header.append(" SK_RELEASE"); |
| 155 #endif | 155 #endif |
| 156 header.appendf(" skia_arch_width=%d", (int)sizeof(void*) * 8); | |
| 157 if (FLAGS_veryVerbose) { | 156 if (FLAGS_veryVerbose) { |
| 158 header.appendf("\n"); | 157 header.appendf("\n"); |
| 159 } | 158 } |
| 160 SkDebugf("%s", header.c_str()); | 159 SkDebugf("%s", header.c_str()); |
| 161 } | 160 } |
| 162 | 161 |
| 163 | 162 |
| 164 // Count tests first. | 163 // Count tests first. |
| 165 int total = 0; | 164 int total = 0; |
| 166 int toRun = 0; | 165 int toRun = 0; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 221 SkDebugf("\n"); | 220 SkDebugf("\n"); |
| 222 return (status.failCount() == 0) ? 0 : 1; | 221 return (status.failCount() == 0) ? 0 : 1; |
| 223 } | 222 } |
| 224 | 223 |
| 225 #if !defined(SK_BUILD_FOR_IOS) | 224 #if !defined(SK_BUILD_FOR_IOS) |
| 226 int main(int argc, char** argv) { | 225 int main(int argc, char** argv) { |
| 227 SkCommandLineFlags::Parse(argc, argv); | 226 SkCommandLineFlags::Parse(argc, argv); |
| 228 return test_main(); | 227 return test_main(); |
| 229 } | 228 } |
| 230 #endif | 229 #endif |
| OLD | NEW |