Running 'test-catch.R' [132s/152s]
  Running 'testthat.R' [8s/9s]
Running the tests in 'tests/test-catch.R' failed.
Complete output:
  > library(testthat)
  > 
  > local({
  + 
  +   # Disable test on Windows, pending devtools
  +   # compatibility with new toolchain
  +   isWindows <- Sys.info()[["sysname"]] == "Windows"
  +   if (isWindows)
  +     return()
  + 
  +   # Disable tests on Solaris, because we don't use Catch there.
  +   isSolaris <- Sys.info()[["sysname"]] == "SunOS"
  +   if (isSolaris)
  +     return()
  + 
  +   if (!requireNamespace("devtools", quietly = TRUE))
  +     return()
  + 
  +   if (!requireNamespace("usethis", quietly = TRUE))
  +     return()
  + 
  +   devel <- try(devtools::has_devel(), silent = TRUE)
  +   if (!isTRUE(devel))
  +     return()
  + 
  +   quietly <- function(expr) {
  +     suppressMessages(capture_output(result <- expr))
  +     result
  +   }
  + 
  +   perform_test <- function(pkgName, catchEnabled) {
  + 
  +     owd <- setwd(tempdir())
  +     on.exit(setwd(owd), add = TRUE)
  + 
  +     pkgPath <- file.path(tempdir(), pkgName)
  +     libPath <- file.path(tempdir(), "rlib")
  +     if (!utils::file_test("-d", libPath))
  +       dir.create(libPath)
  +     .libPaths(c(libPath, .libPaths()))
  + 
  +     on.exit({
  +       unlink(pkgPath, recursive = TRUE)
  +       unlink(libPath, recursive = TRUE)
  +     }, add = TRUE)
  + 
  +     quietly(usethis::create_package(pkgPath))
  +     quietly(testthat::use_catch(pkgPath))
  + 
  +     cat("LinkingTo: testthat",
  +         file = file.path(pkgPath, "DESCRIPTION"),
  +         append = TRUE,
  +         sep = "\n")
  + 
  +     cat(
  +       sprintf("useDynLib(%s, .registration=TRUE)", pkgName),
  +       file = file.path(pkgPath, "NAMESPACE"),
  +       append = TRUE,
  +       sep = "\n"
  +     )
  + 
  +     if (!catchEnabled) {
  + 
  +       makevarsPath <- file.path(
  +         pkgPath,
  +         "src",
  +         if (isWindows) "Makevars.win" else "Makevars"
  +       )
  + 
  +       cat(
  +         "PKG_CPPFLAGS = -DTESTTHAT_DISABLED",
  +         file = makevarsPath,
  +         sep = "\n"
  +       )
  + 
  +     }
  + 
  +     devtools::install(pkgPath, quick = TRUE, quiet = FALSE)
  + 
  +     library(pkgName, character.only = TRUE)
  +     stopifnot(.Call("run_testthat_tests", PACKAGE = pkgName))
  + 
  +     devtools::unload(pkgName)
  +   }
  + 
  +   withr::with_envvar(c(R_TESTS = ''),
  +                        perform_test("testthatclient1",  TRUE))
  +   withr::with_envvar(c(R_TESTS = ''),
  +                      perform_test("testthatclient2", FALSE))
  + 
  + })
  Your system is ready to build packages!
  diffobj  (NA    -> 0.3.2) [CRAN]
  waldo    (NA    -> 0.2.2) [CRAN]
  brio     (NA    -> 1.1.0) [CRAN]
  testthat (2.3.2 -> 3.0.0) [CRAN]
  Installing 4 packages: diffobj, waldo, brio, testthat
  Installing packages into '/tmp/RtmpUc5rmv/rlib'
  (as 'lib' is unspecified)
  trying URL 'https://cloud.r-project.org/src/contrib/diffobj_0.3.2.tar.gz'
  Content type 'application/x-gzip' length 446375 bytes (435 KB)
  ==================================================
  downloaded 435 KB
  
  trying URL 'https://cloud.r-project.org/src/contrib/waldo_0.2.2.tar.gz'
  Content type 'application/x-gzip' length 24106 bytes (23 KB)
  ==================================================
  downloaded 23 KB
  
  trying URL 'https://cloud.r-project.org/src/contrib/brio_1.1.0.tar.gz'
  Content type 'application/x-gzip' length 11610 bytes (11 KB)
  ==================================================
  downloaded 11 KB
  
  trying URL 'https://cloud.r-project.org/src/contrib/testthat_3.0.0.tar.gz'
  Content type 'application/x-gzip' length 674403 bytes (658 KB)
  ==================================================
  downloaded 658 KB
  
  * installing *source* package 'diffobj' ...
  ** package 'diffobj' successfully unpacked and MD5 sums checked
  ** using staged installation
  ** libs
  make[1]: Entering directory '/tmp/Rtmp4vyoBL/R.INSTALL5e5c1bce905f/diffobj/src'
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c diff.c -o diff.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c diffobj.c -o diffobj.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c init.c -o init.o
  clang-11 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o diffobj.so diff.o diffobj.o init.o -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
  make[1]: Leaving directory '/tmp/Rtmp4vyoBL/R.INSTALL5e5c1bce905f/diffobj/src'
  make[1]: Entering directory '/tmp/Rtmp4vyoBL/R.INSTALL5e5c1bce905f/diffobj/src'
  make[1]: Leaving directory '/tmp/Rtmp4vyoBL/R.INSTALL5e5c1bce905f/diffobj/src'
  installing to /tmp/RtmpUc5rmv/rlib/00LOCK-diffobj/00new/diffobj/libs
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** installing vignettes
  ** testing if installed package can be loaded from temporary location
  ** checking absolute paths in shared objects and dynamic libraries
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (diffobj)
  * installing *source* package 'brio' ...
  ** package 'brio' successfully unpacked and MD5 sums checked
  ** using staged installation
  ** libs
  make[1]: Entering directory '/tmp/RtmpXorl1p/R.INSTALL3f0677107d5/brio/src'
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c brio.c -o brio.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c file_line_endings.c -o file_line_endings.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c init.c -o init.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c read_file.c -o read_file.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c read_file_raw.c -o read_file_raw.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c read_lines.c -o read_lines.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c write_file.c -o write_file.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c write_lines.c -o write_lines.o
  clang-11 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o brio.so brio.o file_line_endings.o init.o read_file.o read_file_raw.o read_lines.o write_file.o write_lines.o -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
  make[1]: Leaving directory '/tmp/RtmpXorl1p/R.INSTALL3f0677107d5/brio/src'
  make[1]: Entering directory '/tmp/RtmpXorl1p/R.INSTALL3f0677107d5/brio/src'
  make[1]: Leaving directory '/tmp/RtmpXorl1p/R.INSTALL3f0677107d5/brio/src'
  installing to /tmp/RtmpUc5rmv/rlib/00LOCK-brio/00new/brio/libs
  ** R
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** checking absolute paths in shared objects and dynamic libraries
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (brio)
  * installing *source* package 'waldo' ...
  ** package 'waldo' successfully unpacked and MD5 sums checked
  ** using staged installation
  ** R
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  *** copying figures
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (waldo)
  * installing *source* package 'testthat' ...
  ** package 'testthat' successfully unpacked and MD5 sums checked
  ** using staged installation
  ** libs
  make[1]: Entering directory '/tmp/Rtmp2VHO6u/R.INSTALL163b2b6b7cec/testthat/src'
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include -DCOMPILING_TESTTHAT  -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c init.c -o init.o
  clang-11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include -DCOMPILING_TESTTHAT  -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c reassign.c -o reassign.o
  clang++-11 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include -DCOMPILING_TESTTHAT  -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c test-catch.cpp -o test-catch.o
  clang++-11 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include -DCOMPILING_TESTTHAT  -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c test-example.cpp -o test-example.o
  clang++-11 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG -I../inst/include -DCOMPILING_TESTTHAT  -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c test-runner.cpp -o test-runner.o
  clang++-11 -std=gnu++11 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o testthat.so init.o reassign.o test-catch.o test-example.o test-runner.o -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
  make[1]: Leaving directory '/tmp/Rtmp2VHO6u/R.INSTALL163b2b6b7cec/testthat/src'
  make[1]: Entering directory '/tmp/Rtmp2VHO6u/R.INSTALL163b2b6b7cec/testthat/src'
  make[1]: Leaving directory '/tmp/Rtmp2VHO6u/R.INSTALL163b2b6b7cec/testthat/src'
  installing to /tmp/RtmpUc5rmv/rlib/00LOCK-testthat/00new/testthat/libs
  ** R
  ** inst
  ** tests
  ** byte-compile and prepare package for lazy loading
  ** help
  *** installing help indices
  *** copying figures
  ** building package indices
  ** installing vignettes
  ** testing if installed package can be loaded from temporary location
  ** checking absolute paths in shared objects and dynamic libraries
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (testthat)
  
  The downloaded source packages are in
  	'/tmp/RtmpUc5rmv/downloaded_packages'
  Running /home/hornik/tmp/R.check/r-devel-clang/Work/build/bin/R CMD INSTALL \
    /tmp/RtmpUc5rmv/testthatclient1 --install-tests --no-docs --no-multiarch \
    --no-demo 
  * installing to library '/tmp/RtmpUc5rmv/rlib'
  * installing *source* package 'testthatclient1' ...
  ** using staged installation
  ** libs
  make[1]: Entering directory '/tmp/RtmpUc5rmv/testthatclient1/src'
  clang++-11 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG  -I'/tmp/RtmpUc5rmv/rlib/testthat/include' -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c test-example.cpp -o test-example.o
  clang++-11 -std=gnu++11 -I"/home/hornik/tmp/R.check/r-devel-clang/Work/build/include" -DNDEBUG  -I'/tmp/RtmpUc5rmv/rlib/testthat/include' -I/usr/local/include -D_FORTIFY_SOURCE=2  -fpic  -g -O3 -Wall -pedantic -mtune=native -c test-runner.cpp -o test-runner.o
  clang++-11 -std=gnu++11 -shared -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -Wl,-O1 -o testthatclient1.so test-example.o test-runner.o -L/home/hornik/tmp/R.check/r-devel-clang/Work/build/lib -lR
  make[1]: Leaving directory '/tmp/RtmpUc5rmv/testthatclient1/src'
  make[1]: Entering directory '/tmp/RtmpUc5rmv/testthatclient1/src'
  make[1]: Leaving directory '/tmp/RtmpUc5rmv/testthatclient1/src'
  installing to /tmp/RtmpUc5rmv/rlib/00LOCK-testthatclient1/00new/testthatclient1/libs
  ** R
  ** tests
  ** byte-compile and prepare package for lazy loading
  No man pages found in package  'testthatclient1' 
  ** help
  *** installing help indices
  ** building package indices
  ** testing if installed package can be loaded from temporary location
  ** checking absolute paths in shared objects and dynamic libraries
  ** testing if installed package can be loaded from final location
  ** testing if installed package keeps a record of temporary installation path
  * DONE (testthatclient1)
  Error in stopifnot(.Call("run_testthat_tests", PACKAGE = pkgName)) : 
    LOGICAL() can only be applied to a 'logical', not a 'character'
  Calls: local ... <Anonymous> -> force -> perform_test -> stopifnot -> .Call
  Execution halted