digitalmars.D - Phobos unittests either spuriously fail or spuriously pass
- Andrei Alexandrescu (12/12) Aug 12 2016 I was surprised to see this in phobos master:
- Seb (10/22) Aug 12 2016 That is known as well ;-)
- Seb (7/40) Aug 12 2016 I answered to quickly:
- Gary Willoughby (1/1) Aug 14 2016 Maybe related: https://issues.dlang.org/show_bug.cgi?id=16204
I was surprised to see this in phobos master: make -f posix.mak unittest This passes. So do these: make -f posix.mak BUILD=debug unittest make -f posix.mak BUILD=release unittest Now, this also passes: make -f posix.mak BUILD=debug std/algorithm/sorting.test But this fails in std/algorithm/sorting.d line 2266! make -f posix.mak BUILD=release std/algorithm/sorting.test I'll investigate this. Any insight is welcome! Thanks, Andrei
Aug 12 2016
On Friday, 12 August 2016 at 18:45:54 UTC, Andrei Alexandrescu wrote:I was surprised to see this in phobos master: make -f posix.mak unittest This passes. So do these: make -f posix.mak BUILD=debug unittest make -f posix.mak BUILD=release unittest Now, this also passes: make -f posix.mak BUILD=debug std/algorithm/sorting.test But this fails in std/algorithm/sorting.d line 2266! make -f posix.mak BUILD=release std/algorithm/sorting.test I'll investigate this. Any insight is welcome! Thanks, AndreiThat is known as well ;-) std.algorithm.sorting fails in the individual test due to entropy behaving weird in std.math: A couple of pointers: - https://github.com/dlang/phobos/pull/4587 (recognizes this problem and ignores std.algorithm.sorting from Travis) - https://github.com/dlang/phobos/pull/4719 (switches back to just run test_runner)
Aug 12 2016
On Friday, 12 August 2016 at 18:57:37 UTC, Seb wrote:On Friday, 12 August 2016 at 18:45:54 UTC, Andrei Alexandrescu wrote:I answered to quickly: 1) entropy is in std.numeric, not std.math 2) the issue has been reported a month ago - https://issues.dlang.org/show_bug.cgi?id=16227 for its callerI was surprised to see this in phobos master: make -f posix.mak unittest This passes. So do these: make -f posix.mak BUILD=debug unittest make -f posix.mak BUILD=release unittest Now, this also passes: make -f posix.mak BUILD=debug std/algorithm/sorting.test But this fails in std/algorithm/sorting.d line 2266! make -f posix.mak BUILD=release std/algorithm/sorting.test I'll investigate this. Any insight is welcome! Thanks, AndreiThat is known as well ;-) std.algorithm.sorting fails in the individual test due to entropy behaving weird in std.math: A couple of pointers: - https://github.com/dlang/phobos/pull/4587 (recognizes this problem and ignores std.algorithm.sorting from Travis) - https://github.com/dlang/phobos/pull/4719 (switches back to just run test_runner)
Aug 12 2016
Maybe related: https://issues.dlang.org/show_bug.cgi?id=16204
Aug 14 2016