Skip to content

Commit

Permalink
Fixed use of TIOCSTI on Linux 6.2 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Sep 26, 2024
1 parent ae2ee06 commit 8a35abe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@ jobs:

- name: Build with with gcov
run: |
ls -al /proc/sys/dev/tty/legacy_tiocsti
echo "1" > /proc/sys/dev/tty/legacy_tiocsti 2>/dev/null || true # Required for Linux 6.2.0 or later
sudo sysctl -w dev.tty.legacy_tiocsti=1 # Required for Linux 6.2.0 or later
echo "/proc/sys/dev/tty/legacy_tiocsti"
cat /proc/sys/dev/tty/legacy_tiocsti
sysctl -w dev.tty.legacy_tiocsti=1
script -q -e -c './build.sh coverage'
- name: Generate lcov.info and publish to coveralls.io
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/coverity-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,7 @@ jobs:
- name: Make unit test
run: |
setcap cap_sys_admin+ep test/.libs/eventloop_monitor_test
getcap test/.libs/eventloop_monitor_test
echo "1" > /proc/sys/dev/tty/legacy_tiocsti 2>/dev/null || true # Required for Linux 6.2 or later
sudo sysctl -w dev.tty.legacy_tiocsti=1 # Required for Linux 6.2.0 or later
script -q -e -c 'make check' && RET=$? || RET=$?
cat test/*.log || echo
echo "Exit status: $RET"
Expand Down

0 comments on commit 8a35abe

Please sign in to comment.