Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add feature backtrace #526

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
53a048d
Add 'handle-panics' feature
target-san Oct 5, 2024
639f686
Add conditional scoped panic hook implementation
target-san Oct 5, 2024
343d74f
Silence out panic from test case
target-san Oct 5, 2024
b438970
Updated changelog
target-san Oct 5, 2024
6081fe8
Rename internal module to `internal`
target-san Oct 5, 2024
eb7fdfc
Licensing header
target-san Oct 5, 2024
bb9a900
'backtrace' feature and changelog entry
target-san Oct 5, 2024
b9f344f
Conditional implementation of backtrace object
target-san Oct 5, 2024
4b03828
Extend `Reason` with ability to store backtrace
target-san Oct 5, 2024
bfffcf4
Collect backtrace upon panic or with prop_assert
target-san Oct 5, 2024
55499bf
Slight tweak of reason's detailed display
target-san Oct 6, 2024
692e56a
Tweak errors display
target-san Oct 6, 2024
b135667
Add location handling and construction from PanicInfo, if needed
target-san Oct 6, 2024
c74159c
Fix prop_assert macro
target-san Oct 6, 2024
1eb50fe
Reason from PanicInfo
target-san Oct 6, 2024
9031491
Formatting of affected files
target-san Oct 6, 2024
c21f418
Nicer addition of location info to Reason
target-san Oct 7, 2024
7e1fdd2
Spelling
target-san Oct 7, 2024
e26d531
Merge branch 'main' into feature/backtrace
target-san Dec 12, 2024
eaa8223
Fix test
target-san Dec 12, 2024
cdcb423
Simplify mod, enable only if handle-panics is enabled
target-san Dec 12, 2024
670351b
Allow construct from `dyn Any`
target-san Dec 12, 2024
60a14b3
Separate paths ofr handle-panics enabled and disabled
target-san Dec 12, 2024
9211183
Run tests for handle-panics and backtrace
target-san Dec 12, 2024
d6b3009
Use old-style access to thread-local cells, to allow builds on pinned
target-san Dec 12, 2024
f7337f1
Fix some import inconsistencies
target-san Dec 12, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Licensing header
  • Loading branch information
target-san committed Oct 5, 2024
commit eb7fdfcec05377f444402af850ae1441f7fa8897
9 changes: 9 additions & 0 deletions proptest/src/test_runner/scoped_panic_hook.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
//-
// Copyright 2024 The proptest developers
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#[cfg(feature = "handle-panics")]
mod internal {
//! Implementation of scoped panic hooks