pgbackrest.git / summary / log / commit / refs
commit d3d2a7cd8606be9696957eb052ca6569db1a8167
Author: David Steele <david@pgmasters.net>
Date: Sat Sep 28 13:57:06 2019 +0000
Add line number and fix spacing in TEST_LOG*() macros.
test/src/common/harnessTest.h | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/src/common/harnessTest.h b/test/src/common/harnessTest.h
index 4eac0bb49..52d2ba4fe 100644
--- a/test/src/common/harnessTest.h
+++ b/test/src/common/harnessTest.h
@@ -393,8 +393,8 @@ Logging macros
do \
{ \
printf( \
- " %03u.%03us %s\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \
- (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), message); \
+ " %03u.%03us l%04d - %s\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \
+ (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), __LINE__, message); \
fflush(stdout); \
} while(0)
@@ -402,8 +402,8 @@ Logging macros
do \
{ \
printf( \
- " %03u.%03us " format "\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \
- (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), __VA_ARGS__); \
+ " %03u.%03us l%04d - " format "\n", (unsigned int)((testTimeMSec() - testTimeMSecBegin()) / 1000), \
+ (unsigned int)((testTimeMSec() - testTimeMSecBegin()) % 1000), __LINE__, __VA_ARGS__); \
fflush(stdout); \
} while(0)
[parent: afc483ef86ae]