diff --git a/0001-tests-only-run-arg-parser-test-on-supported-arches.patch b/0001-tests-only-run-arg-parser-test-on-supported-arches.patch new file mode 100644 index 0000000..8f96ed8 --- /dev/null +++ b/0001-tests-only-run-arg-parser-test-on-supported-arches.patch @@ -0,0 +1,36 @@ +From a8e0830aa51a33181bc4de484bfc076d02c7e8a5 Mon Sep 17 00:00:00 2001 +From: Rafael Fonseca +Date: Wed, 2 Sep 2020 09:59:11 +0200 +Subject: [PATCH] tests: only run arg parser test on supported arches + +Fixes #3077 + +Signed-off-by: Rafael Fonseca +--- + tests/cc/test_usdt_args.cc | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/tests/cc/test_usdt_args.cc b/tests/cc/test_usdt_args.cc +index c2c5fff3..b8db58d2 100644 +--- a/tests/cc/test_usdt_args.cc ++++ b/tests/cc/test_usdt_args.cc +@@ -52,6 +52,10 @@ static void verify_register(USDT::ArgumentParser &parser, int arg_size, + REQUIRE(arg.scale() == scale); + } + ++/* supported arches only */ ++#if defined(__aarch64__) || defined(__powerpc64__) || \ ++ defined(__s390x__) || defined(__x86_64__) ++ + TEST_CASE("test usdt argument parsing", "[usdt]") { + SECTION("parse failure") { + #ifdef __aarch64__ +@@ -205,3 +209,5 @@ TEST_CASE("test usdt argument parsing", "[usdt]") { + REQUIRE(parser.done()); + } + } ++ ++#endif /* supported arches only */ +-- +2.26.2 +