blob: 19a34edfdb74f4314023c42608fa8e0a07065ae5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Test for #19350
# ================
#
# The plan
# ---------
# We build a C shared library (`libhello`, contained in ./clib) and then build
# a Haskell library (`T19350-lib`, in ./lib) which depends upon it via `foreign
# import`. We make sure that the libhello shared object can only be found via
# the extra-lib-dirs from the package database registration (which we do by
# moving libhello.so from its original place).
#
# Finally, we enter GHCi, load the Haskell library, and try to use it to call
# into libhello.
#
test('T19350', [req_dynamic_lib_support, expect_broken(19350), extra_files(['clib', 'lib'])], makefile_test, [])
|