Skip to content

Commit

Permalink
tests: only run arg parser test on supported arches
Browse files Browse the repository at this point in the history
Fixes iovisor#3077

Signed-off-by: Rafael Fonseca <[email protected]>
  • Loading branch information
r4f4 authored and yonghong-song committed Sep 2, 2020
1 parent 892475f commit 4344034
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/cc/test_usdt_args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down Expand Up @@ -205,3 +209,5 @@ TEST_CASE("test usdt argument parsing", "[usdt]") {
REQUIRE(parser.done());
}
}

#endif /* supported arches only */

0 comments on commit 4344034

Please sign in to comment.