summaryrefslogtreecommitdiffstats
path: root/proxy/tests/t_utils.h
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-11-12 17:37:57 -0500
committerRobbie Harwood <rharwood@redhat.com>2015-12-01 17:54:02 -0500
commite5d0a2d58044042bd18103c934b98954d66653f9 (patch)
treeb3efa2006836728e226b78d4a93b3b89af6becf3 /proxy/tests/t_utils.h
parented62abc6def520fdc36798dbed4e26be7470ca39 (diff)
downloadgss-proxy-e5d0a2d58044042bd18103c934b98954d66653f9.tar.gz
gss-proxy-e5d0a2d58044042bd18103c934b98954d66653f9.tar.xz
gss-proxy-e5d0a2d58044042bd18103c934b98954d66653f9.zip
Use t_utils.h in all tests.
Avoid duplicating the same helper functions everywhere. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Robbie Harwoood <rharwood@redhat.com>
Diffstat (limited to 'proxy/tests/t_utils.h')
-rw-r--r--proxy/tests/t_utils.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/proxy/tests/t_utils.h b/proxy/tests/t_utils.h
index c0469d4..04e2d94 100644
--- a/proxy/tests/t_utils.h
+++ b/proxy/tests/t_utils.h
@@ -14,10 +14,10 @@
#define discard_const(ptr) ((void *)((uintptr_t)(ptr)))
-#define DEBUG(name, ...) do { \
+#define DEBUG(...) do { \
char msg[4096]; \
snprintf(msg, 4096, __VA_ARGS__); \
- fprintf(stderr, "%s[%s:%d]: %s", name, __FUNCTION__, __LINE__, msg); \
+ fprintf(stderr, "%s[%s:%d]: %s", argv[0], __FUNCTION__, __LINE__, msg); \
fflush(stderr); \
} while(0);