Skip to content

Commit e93f828

Browse files
authored
[Fortran/gfortran] Disable flaky test random_init_2.f90 (#153)
The random_init_2.f90 test is flaky and may fail sometimes, even when no Fortran/Flang changes are made: - https://lab.llvm.org/buildbot/#/builders/143/builds/1236 - https://lab.llvm.org/buildbot/#/builders/17/builds/2058 Looking at the test source, it seems there is no guarantee that 2 distinct random numbers will never collide. This is made worse by multiplying them by 1e6 and converting them to integer, which could make distinct but close enough single-precision floating-point numbers give the same result and fail the test.
1 parent da81c66 commit e93f828

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Fortran/gfortran/regression/DisabledFiles.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,4 +1748,7 @@ file(GLOB FAILING_FILES CONFIGURE_DEPENDS
17481748
# __trampoline_setup. This is probably an unrelated issue, but as a quick fix
17491749
# for the buildbot, this is disabled.
17501750
internal_dummy_2.f08
1751+
1752+
# These are flaky tests, which may fail sometimes.
1753+
random_init_2.f90
17511754
)

0 commit comments

Comments
 (0)