Skip to content

Commit d8951b7

Browse files
committed
Test line-tables-only with gimli too
1 parent 704b55c commit d8951b7

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/main.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ jobs:
8282
- run: cargo test --features libbacktrace --manifest-path crates/without_debuginfo/Cargo.toml
8383
- run: cargo test --features "libbacktrace coresymbolication" --manifest-path crates/without_debuginfo/Cargo.toml
8484
- run: cargo test --features "libbacktrace gimli-symbolize" --manifest-path crates/without_debuginfo/Cargo.toml
85-
- run: cargo test --manifest-path crates/line-tables-only/Cargo.toml
85+
- run: cargo test --manifest-path crates/line-tables-only/Cargo.toml --features libbacktrace
86+
- run: cargo test --manifest-path crates/line-tables-only/Cargo.toml --features gimli-symbolize
8687

8788
windows_arm64:
8889
name: Windows AArch64

crates/line-tables-only/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,4 @@ features = [
1818

1919
[features]
2020
libbacktrace = ['backtrace/libbacktrace']
21+
gimli-symbolize = ['backtrace/gimli-symbolize']

crates/line-tables-only/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ mod tests {
2626
for symbol in frame.symbols() {
2727
if let Some(name) = symbol.name() {
2828
if name.as_bytes() == expected_name.as_bytes() {
29-
assert_eq!(symbol.filename(), Some(expected_file));
29+
assert!(symbol.filename().unwrap().ends_with(expected_file));
3030
assert_eq!(symbol.lineno(), Some(expected_line));
3131
return;
3232
}

0 commit comments

Comments
 (0)