diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /meson/test cases/failing/75 link with shared module on osx | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'meson/test cases/failing/75 link with shared module on osx')
4 files changed, 22 insertions, 0 deletions
diff --git a/meson/test cases/failing/75 link with shared module on osx/meson.build b/meson/test cases/failing/75 link with shared module on osx/meson.build new file mode 100644 index 000000000..bf18b3626 --- /dev/null +++ b/meson/test cases/failing/75 link with shared module on osx/meson.build @@ -0,0 +1,8 @@ +project('link with shared module', 'c') + +if host_machine.system() != 'darwin' + error('MESON_SKIP_TEST test only fails on OSX') +endif + +m = shared_module('mymodule', 'module.c') +e = executable('prog', 'prog.c', link_with : m) diff --git a/meson/test cases/failing/75 link with shared module on osx/module.c b/meson/test cases/failing/75 link with shared module on osx/module.c new file mode 100644 index 000000000..81b0d5af0 --- /dev/null +++ b/meson/test cases/failing/75 link with shared module on osx/module.c @@ -0,0 +1,3 @@ +int func(void) { + return 1496; +} diff --git a/meson/test cases/failing/75 link with shared module on osx/prog.c b/meson/test cases/failing/75 link with shared module on osx/prog.c new file mode 100644 index 000000000..8164d8da1 --- /dev/null +++ b/meson/test cases/failing/75 link with shared module on osx/prog.c @@ -0,0 +1,4 @@ + +int main(int argc, char **argv) { + return func(); +} diff --git a/meson/test cases/failing/75 link with shared module on osx/test.json b/meson/test cases/failing/75 link with shared module on osx/test.json new file mode 100644 index 000000000..7db17d8d7 --- /dev/null +++ b/meson/test cases/failing/75 link with shared module on osx/test.json @@ -0,0 +1,7 @@ +{ + "stdout": [ + { + "line": "test cases/failing/75 link with shared module on osx/meson.build:8:0: ERROR: target links against shared modules. This is not permitted on OSX" + } + ] +} |