Running ‘test-FutureError.R’ [1s/1s]
  Running ‘test-FutureGlobals.R’ [1s/1s]
  Running ‘test-FutureRegistry.R’ [1s/2s]
  Running ‘test-adhoc_native_to_utf8.R’ [1s/1s]
  Running ‘test-backtrace.R’ [2s/4s]
  Running ‘test-bquote.R’ [1s/1s]
  Running ‘test-capture_journals.R’ [2s/3s]
  Running ‘test-cluster,worker-termination.R’ [1s/3s]
  Running ‘test-cluster-connection-clashes.R’ [2s/5s]
  Running ‘test-cluster-missing-future-pkg.R’ [1s/3s]
  Running ‘test-demo-fibonacci.R’ [2s/2s]
  Running ‘test-demo-mandelbrot.R’ [3s/5s]
  Running ‘test-dotdotdot.R’ [4s/7s]
  Running ‘test-early-signaling.R’ [1s/2s]
  Running ‘test-future,labels.R’ [3s/5s]
  Running ‘test-future,optsenvvars.R’ [1s/3s]
  Running ‘test-future.R’ [1s/2s]
  Running ‘test-futureAssign.R’ [4s/7s]
  Running ‘test-futureAssign_OP.R’ [6s/10s]
  Running ‘test-futureAssign_OP_with_environment.R’ [1s/1s]
  Running ‘test-futureAssign_OP_with_listenv.R’ [2s/2s]
  Running ‘test-futureCall.R’ [4s/9s]
  Running ‘test-futureOf.R’ [1s/1s]
  Running ‘test-futureOf_with_environment.R’ [1s/1s]
  Running ‘test-futureOf_with_listenv.R’ [1s/1s]
  Running ‘test-futureSessionInfo.R’ [1s/2s]
  Running ‘test-futures.R’ [19s/26s]
  Running ‘test-globals,NSE.R’ [2s/5s]
  Running ‘test-globals,S4methods.R’ [2s/4s]
  Running ‘test-globals,formulas.R’ [7s/12s]
  Running ‘test-globals,locals.R’ [2s/5s]
  Running ‘test-globals,manual.R’ [5s/12s]
  Running ‘test-globals,resolve.R’ [2s/3s]
  Running ‘test-globals,subassignment.R’ [6s/9s]
  Running ‘test-globals,toolarge.R’ [1s/2s]
  Running ‘test-globals,tricky.R’ [16s/25s]
  Running ‘test-globals,tricky_recursive.R’ [2s/3s]
  Running ‘test-globalsOf,tweaks.R’ [1s/1s]
  Running ‘test-immediateCondition.R’ [1s/3s]
  Running ‘test-interrupt-sets.R’ [2s/5s]
  Running ‘test-interrupt.R’ [1s/3s]
  Running ‘test-interrupts-from-worker-itself.R’ [1s/3s]
  Running ‘test-invalid-owner.R’ [2s/4s]
  Running ‘test-mandelbrot.R’ [1s/1s]
  Running ‘test-misuse-connections.R’ [1s/1s]
  Running ‘test-mpi.R’ [1s/1s]
  Running ‘test-multicore,multithreading.R’ [2s/2s]
  Running ‘test-multicore,worker-termination.R’ [1s/1s]
  Running ‘test-nbrOfWorkers.R’ [3s/7s]
  Running ‘test-nested_futures,mc.cores.R’ [4s/15s]
  Running ‘test-nested_futures.R’ [3s/9s]
  Running ‘test-non-exportable,connections.R’ [1s/2s]
  Running ‘test-objectSize.R’ [1s/1s]
  Running ‘test-plan.R’ [3s/13s]
  Running ‘test-relaying,muffle.R’ [1s/1s]
  Running ‘test-relaying,split.R’ [1s/1s]
  Running ‘test-relaying.R’ [2s/6s]
  Running ‘test-requestCore.R’ [1s/1s]
  Running ‘test-requestNode.R’ [1s/3s]
  Running ‘test-reserved-keyword-functions.R’ [1s/1s]
  Running ‘test-reset.R’ [1s/3s]
  Running ‘test-resolve.R’ [9s/22s]
  Running ‘test-resolved-non-blocking-test.R’ [0s/1s]
  Running ‘test-rng.R’ [28s/40s]
  Running ‘test-rng_utils.R’ [1s/1s]
  Running ‘test-sequential.R’ [1s/1s]
  Running ‘test-sessionDetails.R’ [1s/1s]
  Running ‘test-startup-onAttach.R’ [1s/1s]
  Running ‘test-startup-onLoad.R’ [1s/3s]
  Running ‘test-startup-parseCmdArgs.R’ [1s/1s]
  Running ‘test-stdout.R’ [5s/8s]
  Running ‘test-timeouts.R’ [1s/3s]
  Running ‘test-tweak.R’ [2s/4s]
  Running ‘test-utils.R’ [1s/1s]
  Running ‘test-uuid.R’ [1s/2s]
  Running ‘test-value.R’ [14s/30s]
  Running ‘test-whichIndex.R’ [1s/1s]
Running the tests in ‘tests/test-early-signaling.R’ failed.
Complete output:
  > ## This runs testme test script incl/testme/test-early-signaling.R
  > ## Don't edit - it was autogenerated by inst/testme/deploy.R
  > future:::testme("early-signaling")
  Test 'early-signaling' ...
  Sourcing 9 prologue scripts ...
  01/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/001.load.R'
  02/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/002.record-state.R'
  03/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/030.imports.R'
  04/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/050.utils.R'
  05/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/090.context.R'
  06/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/090.options.R'
  07/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/091.envvars.R'
  08/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/099.future-setup.R'
  09/09 prologue script '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/_prologue/995.detrius-connections.R'
  Sourcing 9 prologue scripts ... done
  Running test script: '/home/hornik/tmp/R.check/r-release-gcc/Work/build/Packages/future/testme/test-early-signaling.R'
  
  > library(future)
  [23:55:15.673] Option 'future.startup.script': TRUE
  [23:55:15.674] Future startup scripts considered: '.future.R', '~/.future.R'
  [23:55:15.674] Future startup scripts found: <none>
  
  > options(future.debug = FALSE)
  
  > message("*** Early signaling of conditions ...")
  *** Early signaling of conditions ...
  
  > message("*** Early signaling of conditions with sequential futures ...")
  *** Early signaling of conditions with sequential futures ...
  
  > plan(sequential)
  
  > f <- future({
  +     stop("bang!")
  + })
  
  > r <- resolved(f)
  
  > stopifnot(r)
  
  > v <- tryCatch(value(f), error = identity)
  
  > stopifnot(inherits(v, "error"))
  
  > message("- with lazy evaluation ...")
  - with lazy evaluation ...
  
  > f <- future({
  +     stop("bang!")
  + }, lazy = TRUE)
  
  > r <- resolved(f)
  
  > v <- tryCatch(value(f), error = identity)
  
  > stopifnot(inherits(v, "error"))
  
  > plan(sequential, earlySignal = TRUE)
  
  > f <- tryCatch(future({
  +     stop("bang!")
  + }), error = identity)
  
  > stopifnot(inherits(f, "error"))
  
  > message("- with lazy evaluation ...")
  - with lazy evaluation ...
  
  > f <- future({
  +     stop("bang!")
  + }, lazy = TRUE)
  
  > r <- tryCatch(resolved(f), error = identity)
  
  > stopifnot(inherits(r, "error"))
  
  > v <- tryCatch(value(f), error = identity)
  
  > stopifnot(inherits(v, "error"))
  
  > f <- future({
  +     warning("careful!")
  + }, lazy = TRUE)
  
  > res <- tryCatch({
  +     r <- resolved(f)
  + }, condition = function(w) w)
  
  > str(res)
  List of 2
   $ message: chr "careful!"
   $ call   : language eval(quote({     { ...
   - attr(*, "class")= chr [1:3] "simpleWarning" "warning" "condition"
  
  > stopifnot(inherits(res, "warning"))
  
  > f <- future({
  +     message("hey!")
  + }, lazy = TRUE)
  
  > res <- tryCatch({
  +     r <- resolved(f)
  + }, condition = function(w) w)
  
  > stopifnot(inherits(res, "message"))
  
  > f <- future({
  +     signalCondition(simpleCondition("hmm"))
  + }, lazy = TRUE)
  
  > res <- tryCatch({
  +     r <- resolved(f)
  + }, condition = function(w) w)
  
  > stopifnot(inherits(res, "condition"))
  
  > message("*** Early signaling of conditions with sequential futures ... DONE")
  *** Early signaling of conditions with sequential futures ... DONE
  
  > message("Number of available cores: ", availableCores())
  Number of available cores: 2
  
  > message("*** Early signaling of conditions with multisession futures ...")
  *** Early signaling of conditions with multisession futures ...
  
  > plan(multisession)
  
  > f <- future({
  +     stop("bang!")
  + })
  
  > Sys.sleep(0.2)
  
  > r <- resolved(f)
  
  > stopifnot(r)
  Error: r is not TRUE
  Execution halted