Skip to content

Commit

Permalink
Add check for compiling in panic=abort without debuginfo
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Oct 21, 2024
1 parent fdb7254 commit 9771e3f
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ members = [
"test_crates/throw_and_catch",
"test_crates/catch_std_exception",
"test_crates/std_catch_exception",
"test_crates/panic_abort_no_debuginfo",
]

[dependencies]
Expand Down
7 changes: 7 additions & 0 deletions test_crates/panic_abort_no_debuginfo/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[package]
name = "panic_abort_no_debuginfo"
version = "0.1.0"
edition = "2021"

[dependencies]
unwinding = { path = "../../", features = ["panic"] }
3 changes: 3 additions & 0 deletions test_crates/panic_abort_no_debuginfo/check.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
set -o pipefail
RUSTFLAGS="-Cpanic=abort -Cdebuginfo=0" ${CARGO:-cargo} run --release $BUILD_STD 2>&1
3 changes: 3 additions & 0 deletions test_crates/panic_abort_no_debuginfo/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extern crate unwinding;

fn main() {}
1 change: 1 addition & 0 deletions tests/compile_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ fn main() {
"throw_and_catch",
"catch_std_exception",
"std_catch_exception",
"panic_abort_no_debuginfo",
];

for test in tests {
Expand Down

0 comments on commit 9771e3f

Please sign in to comment.