From: Naveen N. Rao Date: Fri, 29 Apr 2016 11:14:41 +0000 (+0530) Subject: tests: only test arch-specific symbols X-Git-Tag: v0.2.0~100^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=56f2f14aa1d3081705a78df33df907efcce88293;p=platform%2Fupstream%2Fbcc.git tests: only test arch-specific symbols __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 --- diff --git a/tests/cc/test_c_api.cc b/tests/cc/test_c_api.cc index 7f6d3be..5bbe72b 100644 --- a/tests/cc/test_c_api.cc +++ b/tests/cc/test_c_api.cc @@ -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]") {