diff options
author | Richard Linden <none@none> | 2013-08-23 15:02:37 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-08-23 15:02:37 -0700 |
commit | 4c7f4896290707c833f5e088963c94ff5e01acde (patch) | |
tree | 5908faa12f23b37ebd9639beaa76584f55e0573a /indra/llcommon/tests | |
parent | 235cc392934f1385f05e78f09a079c431a03b4b8 (diff) |
BUILDFIX: replaced function that was accidentally removed
Diffstat (limited to 'indra/llcommon/tests')
-rwxr-xr-x | indra/llcommon/tests/llprocess_test.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/indra/llcommon/tests/llprocess_test.cpp b/indra/llcommon/tests/llprocess_test.cpp index 50b5c79e71..709a095105 100755 --- a/indra/llcommon/tests/llprocess_test.cpp +++ b/indra/llcommon/tests/llprocess_test.cpp @@ -45,7 +45,12 @@ #endif //namespace lambda = boost::lambda; - + std::string apr_strerror_helper(apr_status_t rv) +{ + char errbuf[256]; + apr_strerror(rv, errbuf, sizeof(errbuf)); + return errbuf; +} /***************************************************************************** * Helpers @@ -57,7 +62,7 @@ #define aprchk(expr) aprchk_(#expr, (expr)) static void aprchk_(const char* call, apr_status_t rv, apr_status_t expected=APR_SUCCESS) { - tut::ensure_equals(STRINGIZE(call << " => " << rv << ": " << manager.strerror(rv)), + tut::ensure_equals(STRINGIZE(call << " => " << rv << ": " << apr_strerror_helper(rv)), rv, expected); } |