Skip to content

Commit dbfd818

Browse files
author
smeyer
committed
avoid spurious test error on slow system
git-svn-id: https://svn.r-project.org/R/trunk@88365 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 48cb09f commit dbfd818

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/reg-packages.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,8 @@ system.time(status <-
323323
out = tf,
324324
## avoid delays/timeouts with a broken network route:
325325
env = c("R_REPOSITORIES=NULL"), # (no cyclic dep check)
326-
timeout = 50))# see 5--7 sec; Solaris needed > 30
326+
timeout = 50))# seen 2--7 sec; Solaris needed > 30
327+
if (!identical(status, 124L)) # avoid "random" failures on slow systems
327328
stopifnot(exprs = {
328329
status == 1 # an ERROR now
329330
is.character(exLines <-

0 commit comments

Comments
 (0)