File tree 1 file changed +19
-0
lines changed
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -1180,6 +1180,14 @@ macro_rules! impl_benchmark_test_suite {
1180
1180
$crate:: str :: from_utf8( benchmark_name)
1181
1181
. expect( "benchmark name is always a valid string!" ) ,
1182
1182
) ;
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
+ ) ;
1183
1191
}
1184
1192
}
1185
1193
} ,
@@ -1314,6 +1322,17 @@ macro_rules! add_benchmark {
1314
1322
. expect( "benchmark name is always a valid string!" )
1315
1323
) ;
1316
1324
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
+ } ] )
1317
1336
}
1318
1337
} ;
1319
1338
You can’t perform that action at this time.
0 commit comments