From b33b3f6781b783a5768017dfa4025ca84181d906 Mon Sep 17 00:00:00 2001 From: Jonathan Krebs Date: Tue, 16 Apr 2024 11:19:58 +0200 Subject: [PATCH 1/2] lock in test_sigaction --- test/sys/test_signal.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/sys/test_signal.rs b/test/sys/test_signal.rs index bf607497be..4f44878230 100644 --- a/test/sys/test_signal.rs +++ b/test/sys/test_signal.rs @@ -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( From 297148c036766126b06e484cfd7bf2ff1e9c7284 Mon Sep 17 00:00:00 2001 From: Jonathan Krebs Date: Tue, 16 Apr 2024 11:39:57 +0200 Subject: [PATCH 2/2] delete this commit; just to run CI --- .github/actions/test_more/action.yml | 32 ++++++++++++++++++++++++++++ .github/workflows/ci.yml | 4 ++-- 2 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 .github/actions/test_more/action.yml diff --git a/.github/actions/test_more/action.yml b/.github/actions/test_more/action.yml new file mode 100644 index 0000000000..d36802b591 --- /dev/null +++ b/.github/actions/test_more/action.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a56e7d2b7..f129871f95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: TARGET: '${{ env.TARGET }}' - name: test - uses: ./.github/actions/test + uses: ./.github/actions/test_more with: TARGET: '${{ env.TARGET }}' @@ -63,7 +63,7 @@ jobs: TARGET: "${{ env.TARGET }}" - name: test - uses: ./.github/actions/test + uses: ./.github/actions/test_more with: TARGET: "${{ env.TARGET }}"