diff options
| author | kamil <kamil@NetBSD.org> | 2019-02-25 10:23:01 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2019-02-25 10:23:01 +0000 |
| commit | 48ebc8bcb2f184c6608179cd9c7ef4fe3a185fa6 (patch) | |
| tree | 397d270aef608ff966481f1461819d30b6d6d963 /tests/modules | |
| parent | 00d37b4d8b4e9b18d3d743b8fedb5ef2d19e6ce0 (diff) | |
Fix build of t_kcov
Correct the syntax that used to work in earlier uncommitted version.
Diffstat (limited to 'tests/modules')
| -rw-r--r-- | tests/modules/t_kcov.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/modules/t_kcov.c b/tests/modules/t_kcov.c index bcd92e7eb6d..ed8350673da 100644 --- a/tests/modules/t_kcov.c +++ b/tests/modules/t_kcov.c @@ -214,7 +214,6 @@ ATF_TC_BODY(kcov_enable_no_disable_no_close, tc) ATF_CHECK(ioctl(fd, KCOV_IOC_ENABLE) == 0); } -#ifdef __HAVE_ATOMIC64_OPS static void * common_head(int *fdp) { @@ -254,10 +253,10 @@ ATF_TC_BODY(kcov_basic, tc) ATF_REQUIRE_MSG(ioctl(fd, KCOV_IOC_ENABLE) == 0, "Unable to enable kcov "); - KCOV_STORE(&buf[0], 0); + KCOV_STORE(buf[0], 0); sleep(0); - ATF_REQUIRE_MSG(KCOV_LOAD(&buf[0]) != 0, "No records found"); + ATF_REQUIRE_MSG(KCOV_LOAD(buf[0]) != 0, "No records found"); ATF_REQUIRE_MSG(ioctl(fd, KCOV_IOC_DISABLE) == 0, "Unable to disable kcov"); @@ -270,9 +269,9 @@ thread_test_helper(void *ptr) { kcov_int_t *buf = ptr; - KCOV_STORE(&buf[0], 0); + KCOV_STORE(buf[0], 0); sleep(0); - ATF_REQUIRE_MSG(KCOV_LOAD(&buf[0]) == 0, + ATF_REQUIRE_MSG(KCOV_LOAD(buf[0]) == 0, "Records changed in blocked thread"); return NULL; @@ -298,7 +297,6 @@ ATF_TC_BODY(kcov_thread, tc) common_tail(fd, buf); } -#endif ATF_TP_ADD_TCS(tp) { |
