Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lock in test_sigaction #2375

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/actions/test_more/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 'Test repeated'
description: 'Test nix repeated'
inputs:
# This is required
TARGET:
required: true

SUDO:
description: 'Set it to an empty string to run the tests as the current user, leave it with the default value to test with "sudo"'
required: false
default: sudo --preserve-env=HOME

TOOL:
description: 'Tool used to involve the test command, can be cargo or cross'
required: false
default: cargo

RUSTFLAGS:
required: false
default: -D warnings -A unknown-lints

runs:
using: "composite"
steps:
- name: set up Rust env
shell: bash
run: |
echo "RUSTFLAGS=${{ inputs.RUSTFLAGS }}" >> $GITHUB_ENV

- name: test more
shell: bash
run: for i in $(seq 50); do ${{ inputs.SUDO }} $(which ${{ inputs.TOOL }}) test --target ${{ inputs.TARGET }} --all-features ; done
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
TARGET: '${{ env.TARGET }}'

- name: test
uses: ./.github/actions/test
uses: ./.github/actions/test_more
with:
TARGET: '${{ env.TARGET }}'

Expand All @@ -63,7 +63,7 @@ jobs:
TARGET: "${{ env.TARGET }}"

- name: test
uses: ./.github/actions/test
uses: ./.github/actions/test_more
with:
TARGET: "${{ env.TARGET }}"

Expand Down
2 changes: 2 additions & 0 deletions test/sys/test_signal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ fn test_from_and_into_iterator() {
#[test]
#[cfg(not(target_os = "redox"))]
fn test_sigaction() {
// This test change signal handler
let _m = crate::SIGNAL_MTX.lock();
thread::spawn(|| {
extern "C" fn test_sigaction_handler(_: libc::c_int) {}
extern "C" fn test_sigaction_action(
Expand Down
Loading