Skip to content

Commit

Permalink
Merge pull request #12913 from mantidproject/CalculateMSVesuvioTest_g…
Browse files Browse the repository at this point in the history
…cc5_tolerance

Change test tolerance for gcc >=5 in CalculateMSVesuvioTest.
  • Loading branch information
quantumsteve committed Jun 23, 2015
2 parents e5b43a6 + 07099ed commit b009075
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,11 +194,11 @@ class CalculateMSVesuvioTest : public CxxTest::TestSuite
{
using Mantid::API::MatrixWorkspace_sptr;
const size_t checkIdx = 100;
// OS X seems to do a terrible job with keep the same precision here.
#ifndef __APPLE__
const double tolerance(1e-8);
#else
// OS X and GCC>=5 seems to do a terrible job with keep the same precision here.
#if defined(__APPLE__) || (__GNUC__ >= 5)
const double tolerance(1e-4);
#else
const double tolerance(1e-8);
#endif

// Values for total scattering
Expand Down

0 comments on commit b009075

Please sign in to comment.