diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-28 15:08:27 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2019-11-28 15:08:27 -0500 |
commit | ffced87f08a9ff929f78fd941536d4f88507588a (patch) | |
tree | b70119539d5013bc42eba318dc52731b64ede2ad /tests/test_fixture.py | |
parent | 8c20176f2ce40fc8b0151e5a7d17561dd0eda0b5 (diff) | |
parent | 780de81b36188b141e35519d80755a83bfe5ea0b (diff) |
Merge commit '780de81b36'
Diffstat (limited to 'tests/test_fixture.py')
-rw-r--r-- | tests/test_fixture.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_fixture.py b/tests/test_fixture.py index 74a896ba..d8d3819e 100644 --- a/tests/test_fixture.py +++ b/tests/test_fixture.py @@ -29,26 +29,32 @@ def test_segfault(): ret = util.run(helper, 'segfault') assert ret.returncode == -signal.SIGSEGV +@pytest.mark.skipif(not util.ENABLE_VALGRIND, reason="no valgrind") def test_check(): with pytest.raises(subprocess.CalledProcessError): ret = util.run(helper, 'abort', check=True) +@pytest.mark.skipif(not util.ENABLE_VALGRIND, reason="no valgrind") def test_leak(): with pytest.raises(util.ValgrindFailedError): ret = util.run(helper, 'leak', valgrind=True) +@pytest.mark.skipif(not util.ENABLE_VALGRIND, reason="no valgrind") def test_undefined(): with pytest.raises(util.ValgrindFailedError): ret = util.run(helper, 'undefined', valgrind=True) +@pytest.mark.skipif(not util.ENABLE_VALGRIND, reason="no valgrind") def test_undefined_branch(): with pytest.raises(util.ValgrindFailedError): ret = util.run(helper, 'undefined_branch', valgrind=True) +@pytest.mark.skipif(not util.ENABLE_VALGRIND, reason="no valgrind") def test_read_after_free(): with pytest.raises(util.ValgrindFailedError): ret = util.run(helper, 'read_after_free', valgrind=True) +@pytest.mark.skipif(not util.ENABLE_VALGRIND, reason="no valgrind") def test_write_after_free(): with pytest.raises(util.ValgrindFailedError): ret = util.run(helper, 'write_after_free', valgrind=True) |