You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by so...@apache.org on 2016/07/27 19:01:21 UTC
[trafficserver] branch 5.3.x updated: Fix build failure on F24
This is an automated email from the ASF dual-hosted git repository.
sorber pushed a commit to branch 5.3.x
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/5.3.x by this push:
new d66c2f3 Fix build failure on F24
d66c2f3 is described below
commit d66c2f38acafb9b0a4fc936d0da1fe4c64063304
Author: Phil Sorber <so...@apache.org>
AuthorDate: Wed Jul 27 10:23:03 2016 -0600
Fix build failure on F24
---
lib/ts/TestBox.h | 31 ++++++++++++++-----------------
1 file changed, 14 insertions(+), 17 deletions(-)
diff --git a/lib/ts/TestBox.h b/lib/ts/TestBox.h
index cee6926..6c1bd95 100644
--- a/lib/ts/TestBox.h
+++ b/lib/ts/TestBox.h
@@ -44,7 +44,20 @@ struct TestBox {
TestBox(RegressionTest *test, int *status, int rstatus) : _test(test), _status(status) { *this = rstatus; }
/// Check the result and print a message on failure.
- bool check(bool result, char const *fmt, ...) TS_PRINTFLIKE(3, 4);
+ bool check(bool result, char const *fmt, ...) TS_PRINTFLIKE(3, 4)
+ {
+ if (!result) {
+ static size_t const N = 1 << 16;
+ char buffer[N]; // just stack, go big.
+ va_list ap;
+ va_start(ap, fmt);
+ vsnprintf(buffer, N, fmt, ap);
+ va_end(ap);
+ rprintf(_test, "%s\n", buffer);
+ *_status = REGRESSION_TEST_FAILED;
+ }
+ return result;
+ }
/// Directly assign status.
self &operator=(int status)
@@ -53,21 +66,5 @@ struct TestBox {
return *this;
}
};
-
-bool
-TestBox::check(bool result, char const *fmt, ...)
-{
- if (!result) {
- static size_t const N = 1 << 16;
- char buffer[N]; // just stack, go big.
- va_list ap;
- va_start(ap, fmt);
- vsnprintf(buffer, N, fmt, ap);
- va_end(ap);
- rprintf(_test, "%s\n", buffer);
- *_status = REGRESSION_TEST_FAILED;
- }
- return result;
-}
}
#endif // TS_TEST_BOX_HEADER
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].