test: fix g++ test

This commit is contained in:
Amin Yahyaabadi 2021-09-16 18:15:25 -05:00
parent d452c39ca0
commit 7c06eab367
1 changed files with 5 additions and 1 deletions

View File

@ -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)
})
})