Skip to content

Differently ordered prints #45

@shuchitak

Description

@shuchitak

When both the xsim .xe and sim threads are printing to stdout, the order of prints that show up after the do_run_pyxsim() process joins, is different on MacOS and Linux.

On MacOS, the prints from the xsim thread are printed before the prints from the sim thread. On Linux the prints show up interleaved, in the order in which they were printed.

As a workaround, Pyxsim.testers.AssertiveComparisonTester() needs to be run with ordered = False if the same golden reference .expect file needs to match outputs generated when running on MacOS or Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions