Running ‘testthat.R’ [2s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(customLayout)
  > library(vdiffr)
  > 
  > on_appveyor <- function() {
  +   identical(Sys.getenv("APPVEYOR"), "True")
  + }
  > on_cran <- function() {
  +   !identical(Sys.getenv("NOT_CRAN"), "true")
  + }
  > 
  > # Use minimal fonts.conf to speed up fc-cache
  > if (on_appveyor() || on_cran()) {
  +   gdtools::set_dummy_conf()
  + }
  Loading required namespace: fontquiver
  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>
  [1] "/tmp/RtmpLda4RR/dummy_fontconfig/Vera.ttf"
  attr(,"font")
  [1] "Bitstream Vera Sans"
  attr(,"fullname")
  [1] "Bitstream Vera Sans"
  attr(,"index")
  [1] 0
  > 
  > 
  > test_check("customLayout")
  
   *** caught segfault ***
  address fcd2c0d0, cause 'memory not mapped'
  
  Traceback:
   1: graphics::rect(-0.04, -0.04, 1.04, 1.04, col = colors[i])
   2: lay_show(l3)
   3: p()
   4: print_plot.function(plot, title)
   5: print_plot(plot, title)
   6: writer(fig, testcase, title)
   7: vdiffr::expect_doppelganger("basic bind col", make_basic_test(lay_bind_col))
   8: eval(code, test_env)
   9: eval(code, test_env)
  10: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  11: doTryCatch(return(expr), name, parentenv, handler)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  16: tryCatchList(expr, classes, parentenv, handlers)
  17: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  18: test_code(desc, code, env = parent.frame())
  19: test_that("Basic bind", {    vdiffr::expect_doppelganger("basic bind col", make_basic_test(lay_bind_col))    vdiffr::expect_doppelganger("basic bind row", make_basic_test(layRowBind))})
  20: eval(code, test_env)
  21: eval(code, test_env)
  22: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  28: tryCatchList(expr, classes, parentenv, handlers)
  29: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  30: test_code(NULL, exprs, env)
  31: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  32: force(code)
  33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  34: FUN(X[[i]], ...)
  35: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  36: force(code)
  37: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  38: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  39: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  40: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  41: test_check("customLayout")
  An irrecoverable exception occurred. R is aborting now ...