pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2002-10-11
2002-10-11 15:17:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>
bcba0d1e60d4d5c9d3add952dfba28daf4135973 (
9
lines) (+
5
/-
4
)
[
Show
|
Annotate
]
Branch:
7.9
Avoid constant expressions that may throw errors.
Rev: src/testsuite.in:1.546
1:
-
test_true([["$Id: testsuite.in,v 1.
545
2002/10/
09
02
:
08
:
06
nilsson
Exp $"]]);
+
test_true([["$Id: testsuite.in,v 1.
546
2002/10/
11
15
:
17
:
01
grubba
Exp $"]]);
// This triggered a bug only if run sufficiently early. test_compile_any([[#pike 7.2]])
3305:
test_any([[int x=time(); for(int y=0;y<100;y++) if(mktime(localtime(x+y)) != x+y) return x+y; return 0;]], 0) ]])
-
test_do([[catch(localtime(
-1
))]])
-
test_do([[catch(gmtime(
-1
))]])
-
test_do([[catch(ctime(
-1
))]])
+
test_do([[
int t = -1;
catch(localtime(
t
))
;
]])
+
test_do([[
int t = -1;
catch(gmtime(
t
))
;
]])
+
test_do([[
int t = -1;
catch(ctime(
t
))
;
]])
cond([[all_constants()->_verify_internals]], [[