pike.git/
src/
testsuite.in
Branch:
Tag:
Non-build tags
All tags
No tags
2011-04-09
2011-04-09 22:11:09 by Martin Stjernholm <mast@lysator.liu.se>
4da933cfdb6ede23d42438507027db703b6be9fa (
15
lines) (+
3
/-
12
)
[
Show
|
Annotate
]
Branch:
7.9
Some testsuite logging adjustments.
3299:
int errors; int tests;
-
#define indent(X) (X)
-
#define FMT "%d:%d "
-
+
int maxdepth;
-
string status_prefix="";
+
class Codec { string nameof(mixed x)
3336:
if(!(tests & 63)) { __signal_watchdog();
-
if (
_
verbose
==
1)
-
log_status("
%
s
"
FMT
,
status_prefix,
maxdepth,tests);
+
log_status
(
"Testing
vtables
and
scope
access:
%
d:%d
",maxdepth,tests);
} string test=code*"\n"+"\n"
3398:
{ low_generate(depth, code[..e-1]+({
-
sprintf("class C%d {\n%s\n};",cnt,
indent(
code[e..]*"\n")
)
+
sprintf("class C%d {\n%s\n};",cnt,code[e..]*"\n")
}), sprintf("C%d()->%s",cnt,acc), ans,cnt+1);
3418:
array(int) a() {
-
log_status("Testing vtables and scope access.\n");
-
+
int total_tests; for(maxdepth=1;maxdepth<9 && !errors;maxdepth++) {
3428:
"X", "X",0);
-
status_prefix+=sprintf(FMT,maxdepth,tests);
-
if (_verbose == 1)
-
log_status(status_prefix);
+
total_tests+=tests; tests=0; }