Use a more unique binary name

Use dunetestbar rather than bar as a binary name. The former name is too common
and hence can make the test fail if a bar binary exists elsewhere.
This commit is contained in:
Rudi Grinberg 2018-02-28 12:30:19 +07:00
parent 5ecf354127
commit c5da66e156
2 changed files with 4 additions and 4 deletions

View File

@ -7,4 +7,4 @@
(executable
((modules (bar))
(name bar)
(public_name bar)))
(public_name dunetestbar)))

View File

@ -13,10 +13,10 @@
ocamlopt .foo.eobjs/foo.{cmx,o}
ocamlopt foo.exe
Foo
$ $JBUILDER exec bar --no-build -j1 --display short --root .
Error: Program "bar" isn't built yet you need to buid it first or remove the --no-build option.
$ $JBUILDER exec dunetestbar --no-build -j1 --display short --root .
Error: Program "dunetestbar" isn't built yet you need to buid it first or remove the --no-build option.
[1]
$ $JBUILDER exec bar -j1 --display short --root .
$ $JBUILDER exec dunetestbar -j1 --display short --root .
ocamldep bar.ml.d
ocamlc .bar.eobjs/bar.{cmi,cmo,cmt}
ocamlopt .bar.eobjs/bar.{cmx,o}