diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-12-26 03:23:26 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-12-26 03:23:26 +0530 |
| commit | 55abe16d5a580d949fdd55d366409f6e4aef97a3 (patch) | |
| tree | 8a314382d62357ef484a536858ca901eaf5654d9 /test cases/unit | |
| parent | f3c182f07d7ad0fa1a0714b15fe2633950e81578 (diff) | |
| download | meson-55abe16d5a580d949fdd55d366409f6e4aef97a3.tar.gz | |
unit tests: Test that relative install_rpath works correctly
We weren't testing this with C++, so the breakage was missed.
https://github.com/mesonbuild/meson/issues/2814
Diffstat (limited to 'test cases/unit')
| -rw-r--r-- | test cases/unit/11 build_rpath/meson.build | 9 | ||||
| -rw-r--r-- | test cases/unit/11 build_rpath/prog.cc | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/test cases/unit/11 build_rpath/meson.build b/test cases/unit/11 build_rpath/meson.build index b84c259ab..c0bc3bd27 100644 --- a/test cases/unit/11 build_rpath/meson.build +++ b/test cases/unit/11 build_rpath/meson.build @@ -1,4 +1,4 @@ -project('build rpath', 'c') +project('build rpath', 'c', 'cpp') subdir('sub') executable('prog', 'prog.c', @@ -7,3 +7,10 @@ executable('prog', 'prog.c', install_rpath : '/baz', install : true, ) + +executable('progcxx', 'prog.cc', + link_with : l, + build_rpath : '/foo/bar', + install_rpath : 'baz', + install : true, + ) diff --git a/test cases/unit/11 build_rpath/prog.cc b/test cases/unit/11 build_rpath/prog.cc new file mode 100644 index 000000000..c7c212370 --- /dev/null +++ b/test cases/unit/11 build_rpath/prog.cc @@ -0,0 +1,8 @@ +#include <string> +#include <iostream> + +int main(int argc, char **argv) { + std::string* s = new std::string("Hello"); + delete s; + return 0; +} |
