Merge pull request #557 from rgrinberg/fix-exec-test

Use a more unique binary name
This commit is contained in:
Rudi Grinberg 2018-02-28 12:53:27 +07:00 committed by GitHub
commit e99327427b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}