| 65 | } |
| 66 | |
| 67 | os::String |
| 68 | findProgram(const char *programFilename, bool verbose) |
| 69 | { |
| 70 | os::String programPath; |
| 71 | |
| 72 | os::String processDir = os::getProcessName(); |
| 73 | processDir.trimFilename(); |
| 74 | |
| 75 | programPath = processDir; |
| 76 | programPath.join(programFilename); |
| 77 | if (tryPath(programPath, verbose)) { |
| 78 | return programPath; |
| 79 | } |
| 80 | |
| 81 | #ifndef _WIN32 |
| 82 | // Try absolute install directory |
| 83 | programPath = APITRACE_PROGRAMS_INSTALL_DIR; |
| 84 | programPath.join(programFilename); |
| 85 | if (tryPath(programPath, verbose)) { |
| 86 | return programPath; |
| 87 | } |
| 88 | #endif |
| 89 | |
| 90 | return ""; |
| 91 | } |
| 92 | |
| 93 | os::String |
| 94 | findWrapper(const char *wrapperFilename, bool verbose) |
no test coverage detected