diff --git a/src/gcc/__tests__/gcc.test.ts b/src/gcc/__tests__/gcc.test.ts index 366cf994..ac50d04b 100644 --- a/src/gcc/__tests__/gcc.test.ts +++ b/src/gcc/__tests__/gcc.test.ts @@ -6,6 +6,10 @@ describe("setup-gcc", () => { it("should setup gcc", async () => { const installInfo = await setupGcc("11", "", process.arch) - await testBin("g++", ["--version"], installInfo?.binDir) + let gpp = "g++" + if (process.platform !== "win32") { + gpp = "g++-11" + } + await testBin(gpp, ["--version"], installInfo?.binDir) }) })