-
Notifications
You must be signed in to change notification settings - Fork 1k
escape one frollsd tests for valgrind #7548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ if (exists("test.data.table", .GlobalEnv, inherits=FALSE)) { | |
|
|
||
| exact_NaN = isTRUE(capabilities()["long.double"]) && identical(as.integer(.Machine$longdouble.digits), 64L) | ||
| if (!exact_NaN) { | ||
| cat("\n**** Skipping 7 NaN/NA algo='exact' tests because .Machine$longdouble.digits==", .Machine$longdouble.digits, " (!=64); e.g. under valgrind\n\n", sep="") | ||
| cat("\n**** Skipping 8 NaN/NA algo='exact' tests because .Machine$longdouble.digits==", .Machine$longdouble.digits, " (!=64); e.g. under valgrind\n\n", sep="") | ||
| # for Matt when he runs valgrind it is 53, but 64 when running regular R | ||
| # froll.c uses long double and appears to require full long double accuracy in the algo='exact' | ||
| } | ||
|
|
@@ -1450,7 +1450,7 @@ test(6001.729, frollvar(adaptive=TRUE, c(1:2,NA), c(2,0,2), algo="exact", na.rm= | |
| test(6001.730, frollvar(adaptive=TRUE, c(1:2,NA), c(2,0,2), fill=99, algo="exact", na.rm=TRUE), c(99,NA,NA)) | ||
| y = c(1e8+2.980232e-8, 1e8, 1e8, 1e8) # CLAMP0 test | ||
| test(6001.731, frollvar(y, 3)[4L], 0) | ||
| test(6001.732, frollsd(y, 3)[4L], 0) | ||
| if (exact_NaN) test(6001.732, frollsd(y, 3)[4L], 0) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the other cases are all using
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's also v. interesting that
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, sqrt must be causing this rounding error
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We could possibly use all.equal here instead... Then no need to escape test |
||
| test(6001.733, frollvar(y, c(3,3,3,3), adaptive=TRUE)[4L], 0) | ||
| test(6001.734, frollsd(y, c(3,3,3,3), adaptive=TRUE)[4L], 0) | ||
| test(6001.740, frollvar(c(1.5,2.5,2,NA), c(3,3)), list(c(NA,NA,0.25,NA), c(NA,NA,0.25,NA)), output="running sequentially, because outer parallelism has been used", options=c(datatable.verbose=TRUE)) # ensure no nested parallelism in rolling functions #7352 | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could do something like
nskipfor foreign messages to avoid incrementing this manuallydata.table/R/test.data.table.R
Line 336 in 7e9907f