Skip to content

Commit

Permalink
test(ctypes): simplify test for #5561 (#9318)
Browse files Browse the repository at this point in the history
The test is about case of `external_library_name`, but because it uses
`pkg-config`, we get an unrelated `pkg-config` error message. So we can
simplify it a bit.

Signed-off-by: Etienne Millon <[email protected]>
  • Loading branch information
emillon authored Nov 29, 2023
1 parent dfeb7ee commit f22ccd8
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions test/blackbox-tests/test-cases/ctypes/github-5561-name-mangle.t
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
> (name foo)
> (ctypes
> (external_library_name fooBar)
> (build_flags_resolver vendored)
> (generated_entry_point Types_generated2)
> (type_description
> (instance Type)
Expand All @@ -19,20 +20,15 @@
3 | (module Type_description.Types)
^^^^^^^^^^^^^^^^^^^^^^
Error: Unbound module Type_description
File "dune", line 1, characters 0-177:
File "dune", line 1, characters 0-211:
1 | (library
2 | (name foo)
3 | (ctypes
4 | (external_library_name fooBar)
5 | (generated_entry_point Types_generated2)
6 | (type_description
7 | (instance Type)
8 | (functor Type_description))))
5 | (build_flags_resolver vendored)
6 | (generated_entry_point Types_generated2)
7 | (type_description
8 | (instance Type)
9 | (functor Type_description))))
Error: No rule found for libfoo_stubs.a
File "dune", line 2, characters 7-10:
2 | (name foo)
^^^
Package fooBar was not found in the pkg-config search path.
Perhaps you should add the directory containing `fooBar.pc'
to the PKG_CONFIG_PATH environment variable
[1]

0 comments on commit f22ccd8

Please sign in to comment.