From 945c62bf93b28f0e983f003e54a5084aa47091ba Mon Sep 17 00:00:00 2001 From: Davis King Date: Sat, 9 Apr 2016 09:17:55 -0400 Subject: [PATCH] Adjusted test threshold to avoid false test failure. --- dlib/test/opt_qp_solver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlib/test/opt_qp_solver.cpp b/dlib/test/opt_qp_solver.cpp index 9d8106a95..2152a4fdf 100644 --- a/dlib/test/opt_qp_solver.cpp +++ b/dlib/test/opt_qp_solver.cpp @@ -272,7 +272,7 @@ namespace dlog << LINFO << "true alpha: "<< trans(true_alpha); dlog << LINFO << "alpha error: "<< max(abs(alpha-true_alpha)); - DLIB_TEST(max(abs(alpha-true_alpha)) < 1e-9); + DLIB_TEST_MSG(max(abs(alpha-true_alpha)) < 1e-8, max(abs(alpha-true_alpha))); } void test_qp4_test6()