File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed
pkgs/native_toolchain_c/test Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,10 @@ Future<void> runObjectTests(
66
66
expect (codeAssets, hasLength (1 ));
67
67
final asset = codeAssets.first;
68
68
expect (asset, isA <CodeAsset >());
69
- await expectSymbols (asset: asset, symbols: ['my_func' , 'my_other_func' ]);
69
+ expect (
70
+ await nmReadSymbols (asset),
71
+ stringContainsInOrder (['my_func' , 'my_other_func' ]),
72
+ );
70
73
});
71
74
}
72
75
}
Original file line number Diff line number Diff line change @@ -257,19 +257,6 @@ Future<String> nmReadSymbols(CodeAsset asset) async {
257
257
return result.stdout;
258
258
}
259
259
260
- Future <void > expectSymbols ({
261
- required CodeAsset asset,
262
- required List <String > symbols,
263
- }) async {
264
- if (Platform .isLinux || Platform .isMacOS) {
265
- final nmOutput = await nmReadSymbols (asset);
266
-
267
- expect (nmOutput, stringContainsInOrder (symbols));
268
- } else {
269
- throw UnimplementedError ();
270
- }
271
- }
272
-
273
260
Future <int > textSectionAddress (Uri dylib) async {
274
261
if (Platform .isMacOS) {
275
262
// Find the line in the objdump output that looks like:
You can’t perform that action at this time.
0 commit comments