Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
dcharkes committed Apr 5, 2024
1 parent d301644 commit 09f581c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkgs/ffigen/test/config_tests/compiler_opts_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'dart:io';

import 'package:ffigen/ffigen.dart';
import 'package:ffigen/src/config_provider/spec_utils.dart';
import 'package:ffigen/src/strings.dart' as strings;
Expand Down Expand Up @@ -40,7 +42,12 @@ ${strings.compilerOptsAuto}:
${strings.macos}:
${strings.includeCStdLib}: false
''');
expect(config.compilerOpts.isEmpty, true);
expect(
config.compilerOpts,
equals([
if (Platform.isMacOS) '-Wno-nullability-completeness',
]),
);
});
});
}

0 comments on commit 09f581c

Please sign in to comment.