← Commit list

fe91d5d52b

Dan Fandrich
Dan Fandrich
2025-12-16
SUCCESS Duration: 200s

Subject

tests: add a standard log line for alloc failures

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/runtests.pl+4 -1
@@ -1763,6 +1763,7 @@ sub singletest_check {
if($leak) {
logmsg "\n** MEMORY FAILURE\n";
logmsg @memdata;
+ logmsg " $testnum: memory FAILED\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
return -1;
@@ -1801,6 +1802,7 @@ sub singletest_check {
if($allocs > $lim_allocs) {
logmsg "\n** TOO MANY ALLOCS\n";
logmsg "$lim_allocs allocations allowed, did $allocs\n";
+ logmsg " $testnum: allocs FAILED\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
return -1;
@@ -1808,6 +1810,7 @@ sub singletest_check {
if($max > $lim_max) {
logmsg "\n** TOO MUCH TOTAL ALLOCATION\n";
logmsg "$lim_max maximum allocation allowed, did $max\n";
+ logmsg " $testnum: allocsize FAILED\n";
# timestamp test result verification end
$timevrfyend{$testnum} = Time::HiRes::time();
return -1;
@@ -1826,7 +1829,7 @@ sub singletest_check {
my $fname = shift @notexists;
chomp $fname;
if(-e $fname) {
- logmsg "Found '$fname' when not supposed to exist.\n";
+ logmsg "ERROR: Found '$fname' when not supposed to exist.\n";
$err++;
}
elsif($verbose) {