Skip to content

Commit 8d82ab9

Browse files
authored
Merge pull request #1245 from RcppCore/feature/silence_test
Condition one test with stdout on verbose test var
2 parents f94ac43 + 54ee8fd commit 8d82ab9

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ChangeLog

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2023-01-29 Iñaki Ucar <[email protected]>
2+
3+
* inst/tinytest/test_xptr.R: Fix a couple of tests writing to stdout
4+
15
2023-01-24 Dirk Eddelbuettel <[email protected]>
26

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

inst/tinytest/test_xptr.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ void test() {
6060
'
6161

6262
writeLines(code, file_path)
63-
expect_silent(system(cmd), info="check that finalizer is NOT called on exit")
63+
expect_equal(system(cmd, intern=TRUE), character(0))
6464

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

6767
writeLines(c("#define RCPP_USE_FINALIZE_ON_EXIT", code), file_path)
68-
expect_stdout(system(cmd), info="check that finalizer is called on exit")
68+
expect_equal(system(cmd, intern=TRUE), "custom_finalizer was called")

0 commit comments

Comments
 (0)