Skip to content

Commit

Permalink
test: disable cppcheck test on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Aug 22, 2023
1 parent 95f86c5 commit 511e70e
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/cppcheck/__tests__/cppcheck.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,11 @@ import { getVersion } from "../../versions/versions"
jest.setTimeout(300000)
describe("setup-cppcheck", () => {
it("should setup cppcheck", async () => {
try {
// TODO: choco fails abnormally on windows
if (process.platform !== "win32") {
const installInfo = await setupCppcheck(getVersion("cppcheck", undefined), "", process.arch)

await testBin("cppcheck", ["--version"], installInfo.binDir)
} catch (error) {
if (process.platform === "win32") {
console.error(error)
} else {
throw error
}
}
})
})

0 comments on commit 511e70e

Please sign in to comment.