The R Project SVN R

Rev

Rev 84772 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 84772 Rev 85424
Line 1... Line 1...
1
#### STRICT test suite in the spirit of no-segfaults,
1
#### STRICT test suite in the spirit of no-segfaults,
2
#### but with explicit statements.
2
#### but with explicit statements.
3
 
3
 
-
 
4
tools::assertError(options(catch.script.errors = NA)) # TRUE or FALSE
4
options(error=expression(NULL))
5
options(catch.script.errors = TRUE)
5
stop("test of `options(error=expression(NULL))'")
6
stop("test of 'options(catch.script.errors = TRUE)'")
6
 
7
 
7
if(FALSE) {
8
if(FALSE) {
8
## these ought to work on machines with enough memory
9
## these ought to work on machines with enough memory
9
## These segfaulted in 1.3.x ,  give "could not allocate" errors now
10
## These segfaulted in 1.3.x ,  give "could not allocate" errors now
10
  integer(2^30+1)
11
  integer(2^30+1)