mirror of https://github.com/aminya/setup-cpp
test: fix g++ test
This commit is contained in:
parent
d452c39ca0
commit
7c06eab367
|
@ -6,6 +6,10 @@ describe("setup-gcc", () => {
|
||||||
it("should setup gcc", async () => {
|
it("should setup gcc", async () => {
|
||||||
const installInfo = await setupGcc("11", "", process.arch)
|
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)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue