From ef93fcc89e52e193b9295822d69beb314f23bb70 Mon Sep 17 00:00:00 2001 From: Willi Ballenthin Date: Mon, 4 Apr 2022 12:05:15 -0600 Subject: [PATCH] tests: smda: xfail operand number/offset features --- tests/test_smda_features.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_smda_features.py b/tests/test_smda_features.py index 6614c24d..3873d71b 100644 --- a/tests/test_smda_features.py +++ b/tests/test_smda_features.py @@ -22,6 +22,14 @@ def test_smda_features(sample, scope, feature, expected): if scope.__name__ == "file" and isinstance(feature, capa.features.file.FunctionName) and expected is True: pytest.xfail("SMDA has no function ID") + if "bb=" in scope.__name__ and isinstance(feature, capa.features.insn.OperandNumber) and expected is True: + # SMDA not currently maintained, see: https://github.com/mandiant/capa/issues/937 + pytest.xfail("SMDA doesn't support operand numbers") + + if "bb=" in scope.__name__ and isinstance(feature, capa.features.insn.OperandOffset) and expected is True: + # SMDA not currently maintained, see: https://github.com/mandiant/capa/issues/937 + pytest.xfail("SMDA doesn't support operand offsets") + fixtures.do_test_feature_presence(fixtures.get_smda_extractor, sample, scope, feature, expected)