8351138: Running subset of gtests gets error printing result information

Reviewed-by: erikj
This commit is contained in:
SendaoYan 2025-03-06 01:41:22 +00:00
parent 107ee878d6
commit 4bb3d81479

View File

@ -543,8 +543,8 @@ define SetupRunGtestTestBody
print arr[0]; \ print arr[0]; \
found=1; \ found=1; \
} \ } \
if (!found) { print 0; } \ } \
}' \ END { if (!found) print 0; }' \
$$($1_RESULT_FILE))) \ $$($1_RESULT_FILE))) \
$$(eval $1_FAILED := $$(shell $$(AWK) '/\[ FAILED \] .* tests?, \ $$(eval $1_FAILED := $$(shell $$(AWK) '/\[ FAILED \] .* tests?, \
listed below/ { print $$$$4 }' $$($1_RESULT_FILE))) \ listed below/ { print $$$$4 }' $$($1_RESULT_FILE))) \