Skip to content

Commit

Permalink
Skip test_indirectcfi when Z3 times out (#55)
Browse files Browse the repository at this point in the history
* Skip test_indirectcfi when Z3 times out

* Fix exception name
  • Loading branch information
twizmwazin authored Jun 24, 2024
1 parent a6c6a70 commit 1ef5509
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/test_techniques.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
from functools import wraps
import tempfile
import random
import unittest

import claripy

import patcherex
from patcherex.patch_master import PatchMaster
Expand Down Expand Up @@ -496,7 +499,11 @@ def test_indirectcfi(BackendClass, data_fallback, try_pdf_removal):
patched_fname1 = os.path.join(td, "patched")
backend = BackendClass(vulnerable_fname1,data_fallback,try_pdf_removal=try_pdf_removal)
cp = IndirectCFI(vulnerable_fname1, backend)
patches = cp.get_patches()
try:
# FIXME: This times out in CI! See https://github.com/angr/patcherex/issues/54
patches = cp.get_patches()
except claripy.errors.ClaripySolverInterruptError as ex:
raise unittest.SkipTest from ex
backend.apply_patches(patches)
backend.save(patched_fname1)
# backend.save("/tmp/aaa")
Expand Down

0 comments on commit 1ef5509

Please sign in to comment.