summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-08-09 16:17:48 -0400
committerSimo Sorce <simo@redhat.com>2014-08-10 14:29:38 -0400
commit3914c4b1bd9a94dc9998e7e1a7105a9835da84e0 (patch)
treedec059b4e29cb28bca3572abf4d82ab9d019ea87 /tests
parent3d32e76f1c1380f7aa304ad44b95fe132775f864 (diff)
downloadgss-ntlmssp-3914c4b1bd9a94dc9998e7e1a7105a9835da84e0.tar.gz
gss-ntlmssp-3914c4b1bd9a94dc9998e7e1a7105a9835da84e0.tar.xz
gss-ntlmssp-3914c4b1bd9a94dc9998e7e1a7105a9835da84e0.zip
Add debug helpers to be used to trace gss-ntlmssp
If the GSSNTLMSSP_DEBUG environment variable is set to a file that can be opened for writing, then trace information will be written to that file whenever DEBUG macros are called in the code.
Diffstat (limited to 'tests')
-rw-r--r--tests/ntlmssptest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ntlmssptest.c b/tests/ntlmssptest.c
index 8a61a2f..ddc9d75 100644
--- a/tests/ntlmssptest.c
+++ b/tests/ntlmssptest.c
@@ -1975,6 +1975,9 @@ int main(int argc, const char *argv[])
struct ntlm_ctx *ctx;
int ret;
+ /* enable trace debugging by dfault in tests */
+ setenv("GSSNTLMSSP_DEBUG", "tests-trace.log", 0);
+
ret = ntlm_init_ctx(&ctx);
if (ret) goto done;