Skip to content

Commit 4bb3d81

Browse files
author
SendaoYan
committed
8351138: Running subset of gtests gets error printing result information
Reviewed-by: erikj
1 parent 107ee87 commit 4bb3d81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

make/RunTests.gmk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -543,8 +543,8 @@ define SetupRunGtestTestBody
543543
print arr[0]; \
544544
found=1; \
545545
} \
546-
if (!found) { print 0; } \
547-
}' \
546+
} \
547+
END { if (!found) print 0; }' \
548548
$$($1_RESULT_FILE))) \
549549
$$(eval $1_FAILED := $$(shell $$(AWK) '/\[ FAILED \] .* tests?, \
550550
listed below/ { print $$$$4 }' $$($1_RESULT_FILE))) \

0 commit comments

Comments
 (0)