aboutsummaryrefslogtreecommitdiff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorJohannes Ranke <jranke@uni-bremen.de>2022-12-02 13:25:56 +0100
committerJohannes Ranke <jranke@uni-bremen.de>2022-12-02 13:25:56 +0100
commit240568bf65f2257f1185927ac811dde18aeabe1d (patch)
treef887059e3735c5ee4bae2ae8e8132ddc9329e65e /GNUmakefile
parent9a1136dc5550663b352239502a39a07601959644 (diff)
Avoid error message at testthat termination
https://github.com/r-lib/processx/issues/236
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/GNUmakefile b/GNUmakefile
index 6e75d666..e5f83c1f 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -80,12 +80,16 @@ clean:
$(RM) -r vignettes/web_only/*.R
$(RM) Rplots.pdf
+# We set PROCESSX_NOTIFY_OLD_SIGCHILD in order to avoid the message
+# "Error while shutting down parallel: unable to terminate some child processes",
+# which is said to be harmless, see https://processx.r-lib.org/#mixing-processx-and-the-parallel-base-r-package
+# and https://github.com/r-lib/processx/issues/236
test: install
- "$(RBIN)/Rscript" -e 'options(cli.dynamic = TRUE); devtools::test()' 2>&1 | tee log/test.log
+ PROCESSX_NOTIFY_OLD_SIGCHLD=true "$(RBIN)/Rscript" -e 'options(cli.dynamic = TRUE); devtools::test()' 2>&1 | tee log/test.log
sed -i -e "s/.*\r.*\r//" log/test.log
devtest: devinstall
- "$(RDEVBIN)/Rscript" -e 'options(cli.dynamic = TRUE); devtools::test()' 2>&1 | tee log/test_dev.log
+ PROCESSX_NOTIFY_OLD_SIGCHLD=true "$(RDEVBIN)/Rscript" -e 'options(cli.dynamic = TRUE); devtools::test()' 2>&1 | tee log/test_dev.log
sed -i -e "s/\r.*\r//" log/test_dev.log
slowtests: install

Contact - Imprint