Skip to content

Tests fail, vroom_fwf() doesn't leak a connection when opening fails #611

@nunotexbsd

Description

@nunotexbsd

FreeBSD 16
R-4.5.2

<snip>
* checking installed files from 'inst/doc' ... OK
* checking files in 'vignettes' ... OK
* checking examples ... OK
* checking for unstated dependencies in 'tests' ... OK
* checking tests ...
  Running 'spelling.R'
  Running 'testthat.R'
 ERROR
Running the tests in 'tests/testthat.R' failed.
Last 13 lines of output:
      x
   1. +-testthat::expect_error(...) at test-connection.R:120:3
   2. | \-testthat:::expect_condition_matching_(...)
   3. |   \-testthat:::quasi_capture(...)
   4. |     +-testthat (local) .capture(...)
   5. |     | \-base::withCallingHandlers(...)
   6. |     \-rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. \-testthat::expect_warning(...)
  -- Failure ('test-connection.R:120:3'): vroom_fwf() doesn't leak a connection when opening fails (permission denied) --
  Expected `expect_warning(...)` to throw a error.

  [ FAIL 2 | WARN 2 | SKIP 45 | PASS 1115 ]
  Error:
  ! Test failures.
  Execution halted
* checking for unstated dependencies in vignettes ... OK
* checking package vignettes ... OK
* checking running R code from vignettes ...
  'benchmarks.Rmd' using 'UTF-8'... OK
  'vroom.Rmd' using 'UTF-8'... OK
 OK
* checking re-building of vignette outputs ... SKIPPED
* DONE

Status: 1 ERROR, 1 NOTE
See
  '/wrkdirs/usr/ports/textproc/R-cran-vroom/work/vroom.Rcheck/00check.log'
for details.

Full log:

00check.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions