Skip to content

Commit 6329d94

Browse files
authored
froll, main, mergelist tests: limit to 2 threads (#7465)
Rely on setDTthreads() to read $OMP_THREAD_LIMIT when the package is loaded.
1 parent a54a8ad commit 6329d94

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

tests/froll.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Sys.setenv(OMP_THREAD_LIMIT = Sys.getenv("OMP_THREAD_LIMIT", "2"))
12
require(data.table)
23
test.data.table(script="froll.Rraw")
34
test.data.table(script="frollBatch.Rraw", optional=TRUE)

tests/main.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
Sys.setenv(OMP_THREAD_LIMIT = Sys.getenv("OMP_THREAD_LIMIT", "2"))
12
require(data.table)
23

34
test.data.table() # runs the main test suite of 5,000+ tests in /inst/tests/tests.Rraw

tests/mergelist.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
Sys.setenv(OMP_THREAD_LIMIT = Sys.getenv("OMP_THREAD_LIMIT", "2"))
12
require(data.table)
23
test.data.table(script="mergelist.Rraw")

0 commit comments

Comments
 (0)