Skip to content

Commit e541ba6

Browse files
committed
Disable test/xref2/labels.t under 4.07
Before OCaml 4.07, top-comments weren't recognized by the loader, causing the following diff. This is potentially a bug. --- a/../../../default/test/xref2/labels.t/run.t +++ b/test/xref2/labels.t/run.t.corrected @@ -8,9 +8,8 @@ Some are not in order because the 'doc' field appears after the rest in the outp $ odoc_print test.odocl | jq -c '.. | .["`Heading"]? | select(.) | .[1]["`Label"]' [{"`Root":[{"`RootPage":"test"},"Test"]},"B"] - [{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"M"]},"D"] [{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"M"]},"B"] - [{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"M"]},"C"] + [{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"M"]},"D"] [{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"N"]},"B"] [{"`Root":[{"`RootPage":"test"},"Test"]},"A"] @@ -23,9 +22,9 @@ We expect resolved references and the heading text filled in. [{"`Resolved":{"`Identifier":{"`Label":[{"`Root":[{"`RootPage":"test"},"Test"]},"A"]}}},[{"`Word":"First"},"`Space",{"`Word":"label"}]] [{"`Resolved":{"`Identifier":{"`Label":[{"`Root":[{"`RootPage":"test"},"Test"]},"B"]}}},[{"`Word":"Floating"},"`Space",{"`Word":"label"}]] [{"`Dot":[{"`Root":["M","`TUnknown"]},"C"]},[]] - [{"`Resolved":{"`Label":[{"`Identifier":{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"M"]}},"D"]}},[]] + [{"`Dot":[{"`Root":["M","`TUnknown"]},"D"]},[]] [{"`Resolved":{"`Label":[{"`Identifier":{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"M"]}},"B"]}},[]] - [{"`Resolved":{"`Label":[{"`Identifier":{"`Module":[{"`Root":[{"`RootPage":"test"},"Test"]},"N"]}},"B"]}},[]] + [{"`Dot":[{"`Root":["N","`TUnknown"]},"B"]},[]] $ odoc html-generate --indent -o html test.odocl
1 parent ddf0972 commit e541ba6

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

test/xref2/dune

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
(cram
1515
(deps %{bin:odoc} %{bin:odoc_print} %{bin:compile}))
1616

17+
(subdir
18+
v407_and_above
19+
(cram
20+
(enabled_if
21+
(>= %{ocaml_version} 4.07.0))))
22+
1723
(subdir
1824
v408_and_above
1925
(cram
File renamed without changes.
File renamed without changes.

test/xref2/v408_and_above/dune

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)