Rev 42766 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
#### STRICT test suite in the spirit of no-segfaults,#### but with explicit statements.options(error=expression(NULL))stop("test of `options(error=expression(NULL))'")if(FALSE) {## these ought to work on machines with enough memory## These segfaulted in 1.3.x , give "could not allocate" errors nowinteger(2^30+1)double(2^30+1)complex(2^30+1)character(2^30+1)vector("list", 2^30+2)}getenv("USER") # should produce correct error message.## bad infinite recursion / on.exit / ... interactionsbar <- function() 1+1foo <- function() { on.exit(bar()); foo() }foo() # now simple "infinite recursion"