diff --git a/benchmarking/src/lib.rs b/benchmarking/src/lib.rs index 4a4d8ec98..0d6e88b0f 100644 --- a/benchmarking/src/lib.rs +++ b/benchmarking/src/lib.rs @@ -1180,6 +1180,14 @@ macro_rules! impl_benchmark_test_suite { $crate::str::from_utf8(benchmark_name) .expect("benchmark name is always a valid string!"), ); + }, + $crate::BenchmarkError::Weightless => { + // This is considered a success condition. + $crate::log::error!( + "WARNING: benchmark error weightless skipped - {}", + $crate::str::from_utf8(benchmark_name) + .expect("benchmark name is always a valid string!"), + ); } } }, @@ -1314,6 +1322,14 @@ macro_rules! add_benchmark { .expect("benchmark name is always a valid string!") ); None + }, + Err($crate::BenchmarkError::Weightless) => { + $crate::log::error!( + "WARNING: benchmark weightless skipped - {}", + $crate::str::from_utf8(benchmark) + .expect("benchmark name is always a valid string!") + ); + None } };