Skip to content

Commit 2f796b4

Browse files
author
maechler
committed
for c87492
git-svn-id: https://svn.r-project.org/R/trunk@87506 00db46b3-68df-0310-9c12-caf00c1e9a41
1 parent 7dcb0f7 commit 2f796b4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

tests/reg-tests-1e.R

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1477,6 +1477,8 @@ if(attr(oL, "ok") && capabilities("NLS") && !is.na(.popath)
14771477
## reset {just in case}:
14781478
Sys.setLanguage("en")
14791479
}
1480+
## reset {just in case}:
1481+
Sys.setLanguage("en")
14801482

14811483

14821484
## print( ls.str() ) using '<missing>' also in non-English setup:
@@ -1669,7 +1671,7 @@ stopifnot(identical(gen, isGeneric("+", getName = TRUE)), # the latter always wo
16691671
identical(gen, structure("+", package = "base")),
16701672
isGeneric("+"), isGeneric("+", fdef = `+`))
16711673

1672-
## These gave array-accss errors and perhaps segfaults in R <= 4.4.2
1674+
## These gave array-access errors and perhaps segfaults in R <= 4.4.2
16731675
ix <- integer(0)
16741676
sort.int(ix, method = "quick")
16751677
sort.int(ix, method = "quick", index.return = TRUE)
@@ -1696,6 +1698,19 @@ if(englishMsgs) stopifnot(exprs = {
16961698
options(op) # return to sanity + warn=2
16971699

16981700

1701+
## sessionInfo() *prints* La_version() when not empty
1702+
si <- sessionInfo()
1703+
str( osi <- capture.output(si)); hasLA <- nzchar(si$LAPACK); si$LAPACK <- ""
1704+
osi.noLA <- capture.output(si)
1705+
iLA <- which(osi != osi.noLA)
1706+
cbind(osi, osi.noLA)[iLA,] # was empty ..
1707+
if(length(iLA) && nzchar(La_version())) { cat("sessionInfo - La_* checking: ")
1708+
stopifnot(nzchar(v.noLA <- osi.noLA[iLA]),
1709+
grepl(paste0(v.noLA,"$"), osi[iLA]))
1710+
cat("ok\n")
1711+
}
1712+
## the "LAPACK: .." was entirely empty when si$LAPACK was ""
1713+
16991714

17001715
## keep at end
17011716
rbind(last = proc.time() - .pt,

0 commit comments

Comments
 (0)