Skip to content

Profile test fails on Cygwin cross-compiled build of Julia, due to path mismatch #59654

@topolarity

Description

@topolarity
julia> Base.runtests("Profile")
# ...
Test Summary: |  Pass  Fail  Broken  Total   Time
  Overall     | 15798     1       1  15800  50.9s
    Profile   | 15798     1       1  15800  50.3s
    FAILURE

The global RNG seed was 0xfa3d414c0afcdb987260ed13b5a7f73d.

Error in testset Profile:
Test Failed at C:\cygwin64\home\cody\repos\julia\julia-a5576b4ddb\share\julia\stdlib\v1.13\Profile\test\runtests.jl:245
  Expression: occursin("@juliasrc" * slash, str)
   Evaluated: occursin("@juliasrc\\", "Overhead ╎ [+additional indent] Count  ...
...
    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎     13   /home/cody/repos/julia/src\\gf.c:3636  jl_compile_method_internal
...
")

The problem seems to be that my file paths are Cygwin paths:

    ╎    ╎    ╎    ╎   656  /home/cody/repos/julia/src\\builtins.c
...
    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎     13   /home/cody/repos/julia/src\\gf.c:3636  jl_compile_method_internal
    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎    ╎ 13   /home/cody/repos/julia/src\\gf.c:463  jl_type_infer

versus the Windows path that Profile is looking for:

julia> using Profile; Profile.SRC_DIR
"C:\\cygwin64\\home\\cody\\repos\\julia\\src"

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions