diff --git a/lib/src/filter/tagged.rs b/lib/src/filter/tagged.rs index 887beb4..07a0c1c 100644 --- a/lib/src/filter/tagged.rs +++ b/lib/src/filter/tagged.rs @@ -390,7 +390,7 @@ impl TaggedFilterer { || filter.matches(format!("signal({})", int))?) } Some(ProcessEnd::ExitStop(int)) => filter.matches(format!("stop({})", int)), - Some(ProcessEnd::Exception(int)) => filter.matches(format!("exception({})", int)), + Some(ProcessEnd::Exception(int)) => filter.matches(format!("exception({:X})", int)), Some(ProcessEnd::Continued) => filter.matches("continued"), }, (_, _) => { diff --git a/lib/tests/filter_tagged_nonpaths.rs b/lib/tests/filter_tagged_nonpaths.rs index 0d99ad9..2cb42c2 100644 --- a/lib/tests/filter_tagged_nonpaths.rs +++ b/lib/tests/filter_tagged_nonpaths.rs @@ -362,9 +362,9 @@ async fn complete_with_any_stop() { #[tokio::test] async fn complete_with_specific_exception() { - let filterer = filt(&[filter("complete*=exception(19)")]).await; + let filterer = filt(&[filter("complete*=exception(4B53)")]).await; - filterer.complete_does_pass(Some(ProcessEnd::Exception(NonZeroI32::new(19).unwrap()))); + filterer.complete_does_pass(Some(ProcessEnd::Exception(NonZeroI32::new(19283).unwrap()))); filterer.complete_doesnt_pass(Some(ProcessEnd::Success)); filterer.complete_doesnt_pass(None); }