Skip to content

Commit

Permalink
ci: Non-linux: Try to disable ASLR + enable ptrace
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonKagstrom committed May 5, 2024
1 parent f2f9c90 commit 9f67ae1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
arch: ${{ matrix.arch }}
distro: ubuntu22.04
run: |
echo 0 > /proc/sys/kernel/randomize_va_space
echo 1 > /proc/sys/kernel/yama/ptrace_scope
.github/workflows/generic-build.sh ${{ matrix.arch }}
.github/workflows/ci-run-tests.sh
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/generic-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ run () {
fi

chmod u+x .github/workflows/test-executable.sh
kcov --include-pattern=test-executable.sh coverage .github/workflows/test-executable.sh
kcov --include-pattern=configuration.cc coverage /usr/local/bin/kcov

local coverage="$(<coverage/test-executable.sh/coverage.json)"
local coverage="$(<coverage/kcov/coverage.json)"
local percent="${coverage##*percent_covered\": \"}"
local total_lines="${coverage##*total_lines\": }"
local covered_lines="${coverage##*covered_lines\": }"
Expand Down

0 comments on commit 9f67ae1

Please sign in to comment.