@@ -6,6 +6,7 @@ import 'dart:io';
66
77import 'package:code_assets/code_assets.dart' ;
88import 'package:hooks/hooks.dart' ;
9+ import 'package:native_test_helpers/native_test_helpers.dart' ;
910import 'package:native_toolchain_c/native_toolchain_c.dart' ;
1011import 'package:test/test.dart' ;
1112
@@ -67,11 +68,12 @@ Future<void> main() async {
6768 targetArchitecture,
6869 targetOS,
6970 );
70- final skipReason = symbols == null
71- ? 'tool to extract symbols unavailable'
72- : false ;
73- expect (symbols, contains ('my_other_func' ), skip: skipReason);
74- expect (symbols, isNot (contains ('my_func' )), skip: skipReason);
71+ final skip = skipLocal (
72+ symbols == null ,
73+ 'tool to extract symbols unavailable' ,
74+ );
75+ expect (symbols, contains ('my_other_func' ), skip: skip);
76+ expect (symbols, isNot (contains ('my_func' )), skip: skip);
7577 });
7678
7779 test ('link rust binary without script keeps symbols' , () async {
@@ -91,11 +93,12 @@ Future<void> main() async {
9193 targetArchitecture,
9294 targetOS,
9395 );
94- final skipReason = symbols == null
95- ? 'tool to extract symbols unavailable'
96- : false ;
97- expect (symbols, contains ('my_other_func' ), skip: skipReason);
98- expect (symbols, contains ('my_func' ), skip: skipReason);
96+ final skip = skipLocal (
97+ symbols == null ,
98+ 'tool to extract symbols unavailable' ,
99+ );
100+ expect (symbols, contains ('my_other_func' ), skip: skip);
101+ expect (symbols, contains ('my_func' ), skip: skip);
99102 });
100103}
101104
0 commit comments