Skip to content

Commit

Permalink
Remove tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MasloMaslane committed Mar 21, 2024
1 parent e8c2664 commit 5e6ccf9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 31 deletions.
14 changes: 0 additions & 14 deletions tests/commands/gen/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,20 +236,6 @@ def test_correct_solution_changed(create_package):
assert outputs[os.path.basename(output)] != sm_util.get_file_md5(output)


@pytest.mark.parametrize("create_package", [util.get_shell_ingen_pack_path()], indirect=True)
def test_fsanitize(create_package):
"""
Test if ingen is compiled with -fsanitize=address,undefined flags.
"""
if sm_util.is_macos_arm():
pytest.skip("-fsanitize=address,undefined is not supported on Apple Silicon")
for ingen in ["prog/geningen3.cpp", "prog/geningen4.cpp"]:
with pytest.raises(SystemExit) as e:
simple_run([ingen])
assert e.type == SystemExit
assert e.value.code == 1


@pytest.mark.parametrize("create_package", [util.get_bad_tests_package_path()], indirect=True)
def test_bad_tests(create_package, capsys):
"""
Expand Down
17 changes: 0 additions & 17 deletions tests/commands/inwer/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,20 +143,3 @@ def test_no_output(capsys, create_package):
assert e.value.code == 0
out = capsys.readouterr().out
assert "No output" in out


@pytest.mark.parametrize("create_package", [util.get_inwer_package_path()], indirect=True)
def test_fsanitize(create_package):
"""
Test if inwer is compiled with -fsanitize=address,undefined.
"""
if sm_util.is_macos_arm():
pytest.skip("-fsanitize=address,undefined is not supported on Apple Silicon")
for inwer in ["prog/werinwer5.cpp", "prog/werinwer6.cpp"]:
parser = configure_parsers()
args = parser.parse_args(["inwer", inwer])
command = Command()
with pytest.raises(SystemExit) as e:
command.run(args)
assert e.type == SystemExit
assert e.value.code == 1

0 comments on commit 5e6ccf9

Please sign in to comment.