Skip to content

Use literal file names in tests#106

Open
shonfeder wants to merge 1 commit into
ocaml-community:masterfrom
shonfeder:update-paths
Open

Use literal file names in tests#106
shonfeder wants to merge 1 commit into
ocaml-community:masterfrom
shonfeder:update-paths

Conversation

@shonfeder

Copy link
Copy Markdown

These tests rely on fixtures include output based on the represention of file paths supplied directly, without any normalization. But in dune 3.24 the representation of variables expanding to paths within the current directory changes to always include the ./ prefix. As a result, these tests will break. This was introduced with ocaml/dune#15156

Two other alternatives to make these tests pass with dune 3.24 are:

  • Change the error/warning printing logic to normalize the input
  • Promote the results of the output produced with dune 3.24. This has the downside that the tests will fail with earlier versions of dune.

These tests rely on fixtures include output based on the represention of
file paths supplied directly, without any normalization. But in dune
3.24 the representation of variables expanding to paths within the
current directory changes to always include the `./` prefix. As a
result, these tests will break.

The change proposed here uses literal file names rather than dune
variables to ensure the tests have a fixed representation the files
regardless of the dune version.
mseri pushed a commit to ocaml/opam-repository that referenced this pull request Jun 26, 2026
Required due to changes in the representation of paths expanded from
dune variables in dune 3.24.

An upstream PR is proposed at ocaml-community/cppo#106
@mjambon mjambon requested review from liyishuai and removed request for mjambon June 29, 2026 23:51
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

Successfully merging this pull request may close these issues.

1 participant