def METHOD_NAME(
    self,
    mocker: MockerFixture,
    capsys: Capsys,
    genconfig: GenConfig,
    launch: str,
) -> None:
    mocker.patch("platform.system", return_value="Darwin")
    mocker.patch.object(m, "process_logs")
    system = m.System()
    # set --dry-run to avoid needing to mock anything
    config = genconfig(["--launcher", launch, "--gdb", "--dry-run"])
    driver = m.LegateDriver(config, system)
    driver.run()
    out, _ = capsys.readouterr()
    assert re.search(DARWIN_GDB_WARN_EXPECTED_PAT, scrub(out))