File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1180,6 +1180,14 @@ macro_rules! impl_benchmark_test_suite {
11801180 $crate:: str :: from_utf8( benchmark_name)
11811181 . expect( "benchmark name is always a valid string!" ) ,
11821182 ) ;
1183+ } ,
1184+ $crate:: BenchmarkError :: Weightless => {
1185+ // This is considered a success condition.
1186+ $crate:: log:: error!(
1187+ "WARNING: benchmark error weightless skipped - {}" ,
1188+ $crate:: str :: from_utf8( benchmark_name)
1189+ . expect( "benchmark name is always a valid string!" ) ,
1190+ ) ;
11831191 }
11841192 }
11851193 } ,
@@ -1314,6 +1322,17 @@ macro_rules! add_benchmark {
13141322 . expect( "benchmark name is always a valid string!" )
13151323 ) ;
13161324 None
1325+ } ,
1326+ Err ( $crate:: BenchmarkError :: Weightless ) => {
1327+ $crate:: log:: error!(
1328+ "WARNING: benchmark weightless skipped - {}" ,
1329+ $crate:: str :: from_utf8( benchmark)
1330+ . expect( "benchmark name is always a valid string!" )
1331+ ) ;
1332+ Some ( vec![ $crate:: BenchmarkResult {
1333+ components: selected_components. clone( ) ,
1334+ .. Default :: default ( )
1335+ } ] )
13171336 }
13181337 } ;
13191338
You can’t perform that action at this time.
0 commit comments