Skip to content

Commit 48d819c

Browse files
committed
Condition one test with stdout on verbose test var
1 parent f94ac43 commit 48d819c

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2023-01-29 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/tinytest/test_xptr.R: Condition one test writing to stdout
4+
on test verbosity environment variable being set
5+
16
2023-01-24 Dirk Eddelbuettel <[email protected]>
27

38
* DESCRIPTION (Version, Date): Roll minor version

inst/tinytest/test_xptr.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,7 @@ expect_silent(system(cmd), info="check that finalizer is NOT called on exit")
6464

6565
if (packageVersion("tinytest") < "1.2.0") exit_file("Skip remainder on older test platform")
6666

67-
writeLines(c("#define RCPP_USE_FINALIZE_ON_EXIT", code), file_path)
68-
expect_stdout(system(cmd), info="check that finalizer is called on exit")
67+
if (Sys.getenv("RunVerboseRcppTests") == "yes") {
68+
writeLines(c("#define RCPP_USE_FINALIZE_ON_EXIT", code), file_path)
69+
expect_stdout(system(cmd), info="check that finalizer is called on exit")
70+
}

0 commit comments

Comments
 (0)