Skip to content

Commit

Permalink
capi: Run build ID read test on "other" OSs
Browse files Browse the repository at this point in the history
Start running C API tests on "other" OSs in CI, in an attempt to
increase code coverage and general exposure of functionality to
different environments. Specifically, start with the build ID reading
test, which was just onboarded on the Rust side.

Signed-off-by: Daniel Müller <deso@posteo.net>
  • Loading branch information
d-e-s-o committed Feb 12, 2025
1 parent 4759cd9 commit 3e5d787
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:
name: test-stable-addrs
path: data/
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --tests --release --features=blazesym-dev/dont-generate-unit-test-files -- ':other_os:'
- run: cargo test --tests --workspace --release --features=blazesym-dev/dont-generate-unit-test-files -- ':other_os:'
test-sanitizers:
name: Test with ${{ matrix.sanitizer }} sanitizer
strategy:
Expand Down
3 changes: 3 additions & 0 deletions capi/src/helper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ mod tests {
use std::path::Path;
use std::slice;

use test_tag::tag;

use crate::blaze_err;
use crate::blaze_err_last;

Expand All @@ -128,6 +130,7 @@ mod tests {
}

/// Check that we can read a binary's build ID.
#[tag(other_os)]
#[test]
fn build_id_reading() {
let mut len = 0;
Expand Down

0 comments on commit 3e5d787

Please sign in to comment.