Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failure on MacOS #37

Open
SingingBush opened this issue Dec 12, 2023 · 0 comments
Open

test failure on MacOS #37

SingingBush opened this issue Dec 12, 2023 · 0 comments

Comments

@SingingBush
Copy link

src/dunit/assertion.d seems to have a problem on Mac OS with this unit test:

unittest
{
    assertEventually({ static count = 0; return ++count > 23; });

    auto exception = expectThrows!AssertException(assertEventually({ return false; }));

    assertEquals("timed out", exception.msg);
}

Building with either dmd or ldc on macos-latest (github runner) gets the following output:

Run dub test --coverage
    Fetching undead 1.1.8 (getting selected version)
    Starting Performing "unittest-cov" build using /Users/runner/hostedtoolcache/dc/dmd-2.10[6](https://github.com/SingingBush/dunit/actions/runs/7184674452/job/19566285169#step:5:7).0/x64/dmd2/osx/bin/dmd for x[8](https://github.com/SingingBush/dunit/actions/runs/7184674452/job/19566285169#step:5:9)6_64.
    Building undead 1.1.8: building configuration [library]
    Building d-unit ~ci/github_action: building configuration [unittest]
     Linking d-unit
     Running d-unit 
F.

There was 1 failure:
1) dunit.assertion.unittest
src/dunit/assertion.d:688 dunit.assertion.AssertException: timed out

Tests run: 2, Failures: 1, Errors: 0, Skips: 0
NOT OK
Error Program exited with code 2
Error: Process completed with exit code 2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant