-
-
Notifications
You must be signed in to change notification settings - Fork 75
Conversation
…no_backtrace test.
#[test] | ||
// this test should not be run by default, as it requires the target hardware to be present | ||
#[ignore] | ||
fn successful_run_can_enforce_backtrace() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this deleted and not adapted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Didn't realize at first that we keep the functionality (under a different name). Adapted!
Functionality still missing.
…dds snapshot tests.
src/backtrace/mod.rs
Outdated
|| contains_exception { | ||
true | ||
} else { | ||
false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this if...else
can be left out because the settings.panic_present || unwind.outcome == Outcome::StackOverflow || ...
statement itself evaluates to a bool
, which is what we want to return. e.g.:
BacktraceOptions::Auto => settings.panic_present
|| unwind.outcome == Outcome::StackOverflow
|| unwind.corrupted
|| contains_exception
should work as well
src/backtrace/mod.rs
Outdated
|| unwind.outcome == Outcome::StackOverflow | ||
|| unwind.corrupted | ||
|| contains_exception; | ||
let print_backtrace= match settings.backtrace { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ha, neat!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just my two cents 😁
Adds urhengulas comment that indicates where `--backtrace-limit=0 is accepted and means "no limit"` functionality is implented. Co-authored-by: Johann Hemmann <johann.hemmann@code.berlin>
bors r+ |
Build succeeded: |
547: Migration guide `v0.2.x` to `v0.3.0` r=japaric a=Urhengulas Migration guide from `defmt v0.2.x` to version `v0.3.0`. https://deploy-preview-547--admiring-dubinsky-56dff5.netlify.app/migration-02-03.html Fixes #530. ### TODO - [x] #505: Logger trait v2 - [x] #521: [3/n] Remove u24 - [x] #522: Replace `µs` hint with `us` - [x] (no adaption needed) ~~#508: [5/n] Format trait v2~~ - [x] #519: `DEFMT_LOG` - [x] #550: `defmt::flush()` - [x] knurling-rs/probe-run#198, knurling-rs/probe-run#250, Co-authored-by: Johann Hemmann <johann.hemmann@code.berlin>
Closes #198