test: disable cppcheck test on Windows

This commit is contained in:
Amin Yahyaabadi 2023-08-22 11:45:19 -07:00
parent 95f86c5d8c
commit 511e70eef5
1 changed files with 2 additions and 7 deletions

View File

@ -5,16 +5,11 @@ import { getVersion } from "../../versions/versions"
jest.setTimeout(300000) jest.setTimeout(300000)
describe("setup-cppcheck", () => { describe("setup-cppcheck", () => {
it("should setup cppcheck", async () => { 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) const installInfo = await setupCppcheck(getVersion("cppcheck", undefined), "", process.arch)
await testBin("cppcheck", ["--version"], installInfo.binDir) await testBin("cppcheck", ["--version"], installInfo.binDir)
} catch (error) {
if (process.platform === "win32") {
console.error(error)
} else {
throw error
}
} }
}) })
}) })