Skip to content

Commit 9cd455a

Browse files
committed
Skip some tests due to UBSAN false positives
1 parent 3d55c64 commit 9cd455a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/testthat/test-run_now.R

+6
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ test_that("run_now doesn't go past a failed task", {
5959
})
6060

6161
test_that("run_now wakes up when a background thread calls later()", {
62+
# Skip due to false positives on UBSAN
63+
skip_if(using_ubsan())
64+
6265
env <- new.env()
6366
Rcpp::sourceCpp(system.file("bgtest.cpp", package = "later"), env = env)
6467
# The background task sleeps
@@ -73,6 +76,9 @@ test_that("run_now wakes up when a background thread calls later()", {
7376
})
7477

7578
test_that("When callbacks have tied timestamps, they respect order of creation", {
79+
# Skip due to false positives on UBSAN
80+
skip_if(using_ubsan())
81+
7682
expect_error(testCallbackOrdering(), NA)
7783

7884
Rcpp::sourceCpp(code = '

0 commit comments

Comments
 (0)