Skip to content

Commit

Permalink
[tests] Mark xfail tests because of unclosed sockets.
Browse files Browse the repository at this point in the history
Issue #459.
  • Loading branch information
ChrisCummins committed Jan 19, 2022
1 parent 33afac2 commit 896abef
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/gcc/datasets/csmith_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
pytest_plugins = ["tests.pytest_plugins.common", "tests.pytest_plugins.gcc"]


@pytest.mark.xfail(
reason="github.com/facebookresearch/CompilerGym/issues/459",
)
@with_gcc_support
def test_csmith_size(gcc_bin: str):
with gym.make("gcc-v0", gcc_bin=gcc_bin) as env:
Expand All @@ -27,6 +30,9 @@ def test_csmith_size(gcc_bin: str):
assert len(csmith_dataset) == 0


@pytest.mark.xfail(
reason="github.com/facebookresearch/CompilerGym/issues/459",
)
@with_gcc_support
@pytest.mark.parametrize("index", range(3) if is_ci() else range(10))
def test_csmith_random_select(gcc_bin: str, index: int, tmpwd: Path):
Expand Down Expand Up @@ -62,6 +68,9 @@ def test_random_benchmark(gcc_bin: str):
assert len(random_benchmarks) == num_benchmarks


@pytest.mark.xfail(
reason="github.com/facebookresearch/CompilerGym/issues/459",
)
@with_gcc_support
def test_csmith_from_seed_retry_count_exceeded(gcc_bin: str):
with gym.make("gcc-v0", gcc_bin=gcc_bin) as env:
Expand Down

0 comments on commit 896abef

Please sign in to comment.