Skip to content

Commit fd436d2

Browse files
committed
test: pass the ubuntu version in gcc tests
1 parent 44b95ba commit fd436d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Setting up a **cross-platform** environment for building and testing C++/C proje
2222
| cache | cppcache |
2323
| documentation | doxygen, graphviz |
2424
| coverage | gcovr, opencppcoverage, kcov |
25-
| other | python, sevenzip |
25+
| other | python, powershell, sevenzip |
2626

2727
`setup-cpp` automatically installs the dependencies above tools if needed for the selected tool (e.g., `python` is required for `conan`).
2828

src/gcc/__tests__/gcc.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { getVersion } from "../../versions/versions"
44
import { join, addExeExt } from "patha"
55
import execa from "execa"
66
import { chmodSync } from "fs"
7+
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
78

89
jest.setTimeout(3000000)
910
describe("setup-gcc", () => {
@@ -13,7 +14,7 @@ describe("setup-gcc", () => {
1314
})
1415

1516
it("should setup gcc", async () => {
16-
const version = getVersion("gcc", undefined)
17+
const version = getVersion("gcc", undefined, await ubuntuVersion())
1718
const installInfo = await setupGcc(version, directory, process.arch)
1819

1920
let gpp = "g++"

0 commit comments

Comments
 (0)