Running ‘testthat.R’ [3s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > 
  > mock_path <- file.path("testthat", "mock-pkg", "tests")
  > cases_ver <- vdiffr:::cases_freetype_version(mock_path)
  > system_ver <- vdiffr:::system_freetype_version()
  > 
  > if (cases_ver != system_ver) {
  +   cat(glue::glue(
  +     "Skipping tests because the mock package was generated with a different FreeType version
  +      Mock package: { cases_ver }
  +      System: { system_ver }\n"
  +   ))
  + } else {
  +   library("testthat")
  +   library("vdiffr")
  +   test_check("vdiffr")
  + }
  Fontconfig warning: no <cachedir> elements found. Check configuration.
  Fontconfig warning: adding <cachedir>/var/opt/csw/cache/fontconfig</cachedir>
  Fontconfig warning: adding <cachedir prefix="xdg">fontconfig</cachedir>
  
   *** caught segfault ***
  address fd12e640, cause 'memory not mapped'
  
  Traceback:
   1: .Call("svglite_svglite_", PACKAGE = "svglite", file, bg, width,     height, pointsize, standalone, aliases)
   2: svglite_(file, bg, width, height, pointsize, standalone, aliases)
   3: svglite::svglite(file, user_fonts = user_fonts)
   4: write_svg(fig, testcase, title, user_fonts)
   5: expect_doppelganger("myplot", p1_fail, "")
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: withCallingHandlers(eval(code, test_env), expectation = handle_expectation,     skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: tryCatch(withCallingHandlers(eval(code, test_env), expectation = handle_expectation,     skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error), error = function(e) {}, skip = function(e) {})
  16: test_code(desc, code, env = parent.frame())
  17: test_that("New plots work are collected", {    expect_doppelganger("myplot", p1_fail, "")})
  18: eval(exprs, env)
  19: eval(exprs, env)
  20: source_file(path, new.env(parent = env), chdir = TRUE)
  21: force(code)
  22: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE)        end_context()    })
  23: FUN(X[[i]], ...)
  24: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE)
  25: force(code)
  26: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE))
  27: test_files(paths, reporter = reporter, env = env, ...)
  28: testthat::test_dir(mock_test_dir, reporter = "silent")
  29: eval(exprs, env)
  30: eval(exprs, env)
  31: FUN(X[[i]], ...)
  32: lapply(files, source_file, env = env, chdir = chdir)
  33: source_dir(path, "^helper.*\\.[rR]$", env = env)
  34: source_test_helpers(path, env)
  35: test_dir(test_path, reporter = reporter, env = env, filter = filter,     ...)
  36: with_top_env(env, {    test_dir(test_path, reporter = reporter, env = env, filter = filter,         ...)})
  37: run_tests(package, test_path, filter, reporter, ...)
  38: test_check("vdiffr")
  An irrecoverable exception occurred. R is aborting now ...