Skip to content

Commit ea9a664

Browse files
committed
Allow 2 actions when generating coverage
1 parent e026b73 commit ea9a664

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/unit/native_deps/native_deps_test.bzl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@ def _staticlib_has_native_libs_test_impl(ctx):
4848
def _proc_macro_has_native_libs_test_impl(ctx):
4949
env = analysistest.begin(ctx)
5050
tut = analysistest.target_under_test(env)
51-
asserts.equals(env, 1, len(tut.actions))
51+
if ctx.configuration.coverage_enabled:
52+
asserts.equals(env, 2, len(tut.actions))
53+
else:
54+
asserts.equals(env, 1, len(tut.actions))
5255
action = tut.actions[0]
5356
assert_argv_contains_prefix_suffix(env, action, "-Lnative=", "/native_deps")
5457
assert_argv_contains(env, action, "--crate-type=proc-macro")

0 commit comments

Comments
 (0)