From aa1ddcebf5a63c4908b08035b223b1ec1fa54037 Mon Sep 17 00:00:00 2001 From: Michael Goulish Date: Mon, 24 May 2010 22:56:40 +0000 Subject: Disable new sasl testing if SASL version is less than 2.1.22. Earlier version do not have SASL_PATH_TYPE_CONFIG, which this testing requires. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@947850 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/tests/cluster_authentication_soak.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'qpid/cpp/src/tests') diff --git a/qpid/cpp/src/tests/cluster_authentication_soak.cpp b/qpid/cpp/src/tests/cluster_authentication_soak.cpp index 6963438d5f..9e878be6d1 100644 --- a/qpid/cpp/src/tests/cluster_authentication_soak.cpp +++ b/qpid/cpp/src/tests/cluster_authentication_soak.cpp @@ -241,6 +241,11 @@ using namespace qpid::tests; int main ( int argc, char ** argv ) { + // I need the SASL_PATH_TYPE_CONFIG feature, which did not appear until SASL 2.1.22 + #if (SASL_VERSION_MAJOR < 2) || (SASL_VERSION_MINOR < 1) || (SASL_VERSION_STEP < 22) + return 0; + #endif + int n_iterations = argc > 1 ? atoi(argv[1]) : 1; runSilent = argc > 2 ? atoi(argv[2]) : 1; // default to silent int killBroker = argc > 3 ? atoi(argv[3]) : 0; // Force the kill of one broker. -- cgit v1.2.1