File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 1
- 2023-01-29 Dirk Eddelbuettel <edd@debian .org>
1
+ 2023-01-29 Iñaki Ucar <iucar@fedoraproject .org>
2
2
3
- * inst/tinytest/test_xptr.R: Condition one test writing to stdout
4
- on test verbosity environment variable being set
3
+ * inst/tinytest/test_xptr.R: Fix a couple of tests writing to stdout
5
4
6
5
2023-01-24 Dirk Eddelbuettel <
[email protected] >
7
6
Original file line number Diff line number Diff line change @@ -60,11 +60,9 @@ void test() {
60
60
'
61
61
62
62
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 ) )
64
64
65
65
if (packageVersion(" tinytest" ) < " 1.2.0" ) exit_file(" Skip remainder on older test platform" )
66
66
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
- }
67
+ writeLines(c(" #define RCPP_USE_FINALIZE_ON_EXIT" , code ), file_path )
68
+ expect_equal(system(cmd , intern = TRUE ), " custom_finalizer was called" )
You can’t perform that action at this time.
0 commit comments