Skip to content

Commit a740650

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 a740650

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

test/xref2/dune

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

17+
(subdir
18+
v407_and_above
19+
(cram
20+
(deps %{bin:odoc} %{bin:odoc_print} %{bin:compile})
21+
(enabled_if
22+
(>= %{ocaml_version} 4.07.0))))
23+
1724
(subdir
1825
v408_and_above
1926
(cram
27+
(deps %{bin:odoc} %{bin:odoc_print} %{bin:compile})
2028
(enabled_if
2129
(>= %{ocaml_version} 4.08.0))))
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)