Compare commits
2
Commits
v4.7.0
...
75c2a4cbdf
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
75c2a4cbdf | ||
|
|
2c8ce0a359 |
No files matched your search
@@ -17,7 +17,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Install dependencies (Linux)
|
- name: Install dependencies (Linux)
|
||||||
if: runner.os == 'Linux'
|
if: runner.os == 'Linux'
|
||||||
run: sudo apt-get update && sudo apt-get install -y gcc gdc ldc
|
run: sudo apt-get update && sudo apt-get install -y gcc gdc ldc valgrind
|
||||||
|
|
||||||
- name: Install dependencies (macOS)
|
- name: Install dependencies (macOS)
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
|
|||||||
@@ -95,6 +95,9 @@ EOF
|
|||||||
File.binwrite("spec/run/.stdout", stdout)
|
File.binwrite("spec/run/.stdout", stdout)
|
||||||
stderr.sub!(/^.*modules passed unittests\n/, "")
|
stderr.sub!(/^.*modules passed unittests\n/, "")
|
||||||
results = Results.new(stdout, stderr, status)
|
results = Results.new(stdout, stderr, status)
|
||||||
|
# Valgrind is only reliably available on Linux, so limit the leak check to
|
||||||
|
# Linux platforms.
|
||||||
|
if RUBY_PLATFORM =~ /linux/
|
||||||
stdout, stderr, status = Open3.capture3("valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose spec/run/testparser")
|
stdout, stderr, status = Open3.capture3("valgrind --leak-check=full --show-leak-kinds=all --track-origins=yes --verbose spec/run/testparser")
|
||||||
vgout = stdout + stderr
|
vgout = stdout + stderr
|
||||||
File.binwrite("spec/run/.vgout", vgout)
|
File.binwrite("spec/run/.vgout", vgout)
|
||||||
@@ -104,6 +107,7 @@ EOF
|
|||||||
raise "Valgrind detected memory leak"
|
raise "Valgrind detected memory leak"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
results
|
results
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user