From 7c06eab3679877b4788711e05537c1a48bb69dde Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Thu, 16 Sep 2021 18:15:25 -0500 Subject: [PATCH] test: fix g++ test --- src/gcc/__tests__/gcc.test.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) }) })