| 203 | } |
| 204 | |
| 205 | void checkForError(const std::string& filename, const std::string& errorMsg) { |
| 206 | const std::string pgm = findProgram("tools/src/orc-scan"); |
| 207 | std::string output; |
| 208 | std::string error; |
| 209 | EXPECT_EQ(1, runProgram({pgm, filename}, output, error)); |
| 210 | EXPECT_EQ("", output); |
| 211 | EXPECT_NE(std::string::npos, error.find(errorMsg)) << error; |
| 212 | } |
| 213 | |
| 214 | void checkForError(const std::string& filename, const std::string& errorMsg1, |
| 215 | const std::string& errorMsg2) { |
no test coverage detected