Skip to content

Commit 38e6904

Browse files
committed
Fix tests with cmdliner 2.0.0
Cmdliner 2.0.0 fails with a slightly different error message than 1.3.0
1 parent 3e696aa commit 38e6904

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

test/bin/mdx-test/misc/no-such-file/dune

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@
77

88
(rule
99
(alias runtest)
10+
(enabled_if (< %{version:cmdliner} "2.0.0"))
1011
(action
1112
(diff test.expected test.output)))
13+
14+
(rule
15+
(alias runtest)
16+
(enabled_if (>= %{version:cmdliner} "2.0.0"))
17+
(action
18+
(diff test.expected-cmdliner2 test.output)))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Usage: ocaml-mdx test [--help] [OPTION]… FILE
2+
ocaml-mdx: FILE argument: no foo file

test/bin/mdx-test/misc/no-such-prelude/dune

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,12 @@
77

88
(rule
99
(alias runtest)
10+
(enabled_if (< %{version:cmdliner} "2.0.0"))
1011
(action
1112
(diff test.expected test.output)))
13+
14+
(rule
15+
(alias runtest)
16+
(enabled_if (>= %{version:cmdliner} "2.0.0"))
17+
(action
18+
(diff test.expected-cmdliner2 test.output)))
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Usage: ocaml-mdx test [--help] [OPTION]… FILE
2+
ocaml-mdx: option --prelude: no foo file

0 commit comments

Comments
 (0)