summaryrefslogtreecommitdiff
path: root/indra/test
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-16 20:27:49 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2013-04-16 20:27:49 -0400
commite3bad9fb86c3f44ad67488402ce2e46743a2422e (patch)
treefee6f93203d87d71031de5df7181cd7df9ca88ce /indra/test
parent9cbbb45a0ca8a56707125cdb3f6ea95de7f9deef (diff)
SH-4061 WIP - fix for build issues on mac, reset the retry policy on success.
Diffstat (limited to 'indra/test')
-rwxr-xr-x[-rw-r--r--]indra/test/lltut.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/test/lltut.h b/indra/test/lltut.h
index 55d84bcaca..243e869be7 100644..100755
--- a/indra/test/lltut.h
+++ b/indra/test/lltut.h
@@ -65,6 +65,16 @@ namespace tut
ensure_approximately_equals(NULL, actual, expected, frac_bits);
}
+ inline void ensure_approximately_equals_range(const char *msg, F32 actual, F32 expected, F32 delta)
+ {
+ if (fabs(actual-expected)>delta)
+ {
+ std::stringstream ss;
+ ss << (msg?msg:"") << (msg?": ":"") << "not equal actual: " << actual << " expected: " << expected << " tolerance: " << delta;
+ throw tut::failure(ss.str().c_str());
+ }
+ }
+
inline void ensure_memory_matches(const char* msg,const void* actual, U32 actual_len, const void* expected,U32 expected_len)
{
if((expected_len != actual_len) ||