Skip to content

Commit 948726d

Browse files
committed
Ignore some Buffer::processed tests
Caused by a problem in libbacktrace first reported to rust repo in rust-lang/rust#71397, than to backtrac-rs in rust-lang/backtrace-rs#312, fixed in backtrace-rs here: rust-lang/backtrace-rs@b53c52b. Update of backtrace-rs for rustc is here: rust-lang/rust#71577, no yet merged.
1 parent 31251d9 commit 948726d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/buffer/tests.rs

+4
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,15 @@ fn buffer_reset() {
112112

113113
#[test]
114114
#[should_panic(expected = "marking bytes as processed beyond read range")]
115+
#[ignore = "problem in libbacktrace, see https://github.com/rust-lang/rust/issues/71397"]
115116
fn marking_processed_beyond_read_range() {
116117
let mut buf = Buffer::new();
117118
buf.processed(1);
118119
}
119120

120121
#[test]
121122
#[should_panic(expected = "marking bytes as processed beyond read range")]
123+
#[ignore = "problem in libbacktrace, see https://github.com/rust-lang/rust/issues/71397"]
122124
fn marking_processed_beyond_read_range_after_reset() {
123125
let mut buf = Buffer::new();
124126

@@ -335,6 +337,7 @@ fn write_buffer_processed_original_empty() {
335337

336338
#[test]
337339
#[should_panic(expected = "marking bytes as processed beyond read range")]
340+
#[ignore = "problem in libbacktrace, see https://github.com/rust-lang/rust/issues/71397"]
338341
fn marking_processed_write_buffer_beyond_read_range() {
339342
let mut buf = Buffer::new();
340343
let (original_bytes, mut wbuf) = buf.split_write(20);
@@ -344,6 +347,7 @@ fn marking_processed_write_buffer_beyond_read_range() {
344347

345348
#[test]
346349
#[should_panic(expected = "marking bytes as processed beyond read range")]
350+
#[ignore = "problem in libbacktrace, see https://github.com/rust-lang/rust/issues/71397"]
347351
fn marking_processed_write_buffer_beyond_read_range_after_reset() {
348352
let mut buf = Buffer::new();
349353
let bytes = &[1, 2, 3];

0 commit comments

Comments
 (0)