Skip to content

Commit 38d535b

Browse files
committed
Fix configure test
1 parent edeeebc commit 38d535b

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

configure

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ then
5656
fi
5757
echo "#include <libfswatch/c/libfswatch.h>
5858
int main() {
59-
if (fsw_init_library() != FSW_OK) return;
59+
#if FSW_OK
60+
*(void *) 0 = 0;
61+
#endif
6062
}" | ${CC} ${PKG_CFLAGS} -xc - -o /dev/null > /dev/null 2>&1
6163

6264
else

tests/testthat/test-watch.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ test_that("watcher() logs", {
2525
})
2626

2727
test_that("watcher() callbacks", {
28+
skip_if(R.version$arch == "aarch64" && !Sys.getenv("NOT_CRAN") == "true")
2829
x <- 0L
2930
w <- watcher(
3031
c(dir, dir2),

0 commit comments

Comments
 (0)