alamb commented on code in PR #11525:
URL: https://github.com/apache/datafusion/pull/11525#discussion_r1681741785
##########
datafusion/common/src/error.rs:
##########
@@ -661,11 +661,16 @@ mod test {
assert_eq!(res.strip_backtrace(), "Arrow error: Schema error: bar");
}
- // RUST_BACKTRACE=1 cargo test --features backtrace --package
datafusion-common --lib -- error::test::test_backtrace
+ // To pass the test the environment variable RUST_BACKTRACE should be set
to 1 to enforce backtrace
#[cfg(feature = "backtrace")]
#[test]
#[allow(clippy::unnecessary_literal_unwrap)]
fn test_enabled_backtrace() {
+ match std::env::var("RUST_BACKTRACE") {
Review Comment:
👍
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]