Skip to content

Commit

Permalink
tests: only test arch-specific symbols
Browse files Browse the repository at this point in the history
__per_cpu_start has a different address on each architecture. Instead,
use a arch-unique symbol for the test.

Signed-off-by: Naveen N. Rao <[email protected]>
  • Loading branch information
rnav committed May 2, 2016
1 parent 0006ad1 commit 56f2f14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/cc/test_c_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ TEST_CASE("binary resolution with `which`", "[c_api]") {
static void _test_ksym(const char *sym, uint64_t addr, void *_) {
if (!strcmp(sym, "startup_64")) {
REQUIRE(addr == 0xffffffff81000000ull);
} else if (!strcmp(sym, "__per_cpu_start"))
REQUIRE(addr == 0x0);
} else if (!strcmp(sym, "system_reset_pSeries"))
REQUIRE(addr == 0xc000000000000100ull);
}

TEST_CASE("list all kernel symbols", "[c_api]") {
Expand Down

0 comments on commit 56f2f14

Please sign in to comment.