Skip to content

Commit

Permalink
Ignore some Buffer::processed tests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Thomasdezeeuw committed Apr 28, 2020
1 parent 31251d9 commit 948726d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/buffer/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,15 @@ fn buffer_reset() {

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

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

Expand Down Expand Up @@ -335,6 +337,7 @@ fn write_buffer_processed_original_empty() {

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

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

0 comments on commit 948726d

Please sign in to comment.