summaryrefslogtreecommitdiff
path: root/tests/ntlm-test.c
diff options
context:
space:
mode:
authorDan Winship <danw@gnome.org>2013-04-10 09:11:45 -0400
committerDan Winship <danw@gnome.org>2013-04-10 09:12:29 -0400
commit727cae4b26d528887e8cc0e7fd503df5b78bc3ac (patch)
treed2aa3ffb298531f15afc8b448640b851a8208d71 /tests/ntlm-test.c
parentdf03c80e44ff2efe15dcca40b214fb2050fbe6e2 (diff)
downloadlibsoup-727cae4b26d528887e8cc0e7fd503df5b78bc3ac.tar.gz
libsoup-727cae4b26d528887e8cc0e7fd503df5b78bc3ac.tar.bz2
libsoup-727cae4b26d528887e8cc0e7fd503df5b78bc3ac.zip
tests: fix ntlm-test when built without ntlm_auth support
Don't try to use external NTLM auth if built without support for that. https://bugzilla.gnome.org/show_bug.cgi?id=697510
Diffstat (limited to 'tests/ntlm-test.c')
-rw-r--r--tests/ntlm-test.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ntlm-test.c b/tests/ntlm-test.c
index 3588c555..f67a3d14 100644
--- a/tests/ntlm-test.c
+++ b/tests/ntlm-test.c
@@ -571,8 +571,9 @@ main (int argc, char **argv)
debug_printf (1, "Built-in NTLM support\n");
do_ntlm_tests (uri, TRUE);
+#ifdef USE_NTLM_AUTH
/* Samba winbind /usr/bin/ntlm_auth helper support (via a
- * helper program that emulate's its interface).
+ * helper program that emulates its interface).
*/
g_setenv ("SOUP_NTLM_AUTH_DEBUG", BUILDDIR "/ntlm-test-helper", TRUE);
debug_printf (1, "\nExternal helper support\n");
@@ -585,6 +586,7 @@ main (int argc, char **argv)
g_setenv ("SOUP_NTLM_AUTH_DEBUG_NOCREDS", "1", TRUE);
debug_printf (1, "\nExternal -> fallback support\n");
do_ntlm_tests (uri, TRUE);
+#endif
/* Other tests */
g_setenv ("SOUP_NTLM_AUTH_DEBUG", "", TRUE);