[flang-commits] [PATCH] D128261: [Fortran] Relax relative tolerance for FCVS tests

Diana Picus via Phabricator via flang-commits flang-commits at lists.llvm.org
Tue Aug 23 00:40:42 PDT 2022


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rTd2d142c91d2d: [Fortran] Relax relative tolerance for FCVS tests (authored by rovka).

Repository:
  rT test-suite

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128261/new/

https://reviews.llvm.org/D128261

Files:
  Fortran/UnitTests/fcvs21_f95/CMakeLists.txt


Index: Fortran/UnitTests/fcvs21_f95/CMakeLists.txt
===================================================================
--- Fortran/UnitTests/fcvs21_f95/CMakeLists.txt
+++ Fortran/UnitTests/fcvs21_f95/CMakeLists.txt
@@ -50,6 +50,11 @@
 set(Source ${SPECIAL_CASES})
 if (FCVS_ALLOW_FLEXIBLE_OUTPUT)
   set(FP_IGNOREWHITESPACE ON)
+
+  # FM905 needs a higher relative tolerance than the rest. The reference output
+  # contains 2.5E-11, but gfortran (reasonably) prints 2.50000003E-11. Both
+  # should be accepted.
+  set(FP_TOLERANCE 1.0e-7)
 endif()
 llvm_singlesource()
 set(Source)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128261.454721.patch
Type: text/x-patch
Size: 584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220823/36779786/attachment.bin>


More information about the flang-commits mailing list