aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2019-03-28 09:33:11 -0700
committerNirbheek Chauhan <nirbheek@centricular.com>2019-04-16 23:56:29 +0530
commitc41c6fa79a17022e913e694418a68bd79d610c79 (patch)
treefefc800ec80c2b738c4ae1a149e46a36f00d492b
parent0ee6ba53049cd15503c7c3d55e77e29fb14f0f26 (diff)
downloadmeson-c41c6fa79a17022e913e694418a68bd79d610c79.zip
meson-c41c6fa79a17022e913e694418a68bd79d610c79.tar.gz
meson-c41c6fa79a17022e913e694418a68bd79d610c79.tar.bz2
tests: modify partial_dependency test to cover a bug
Currently if a dependency is added to declare_dependency, and the top dependency doesn't have an attribute that the subdependency does, it wont be propagated by subdependency.
-rw-r--r--test cases/common/189 partial dependency/declare_dependency/meson.build6
1 files changed, 5 insertions, 1 deletions
diff --git a/test cases/common/189 partial dependency/declare_dependency/meson.build b/test cases/common/189 partial dependency/declare_dependency/meson.build
index 86e2608..3783f66 100644
--- a/test cases/common/189 partial dependency/declare_dependency/meson.build
+++ b/test cases/common/189 partial dependency/declare_dependency/meson.build
@@ -12,9 +12,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+dec_sub_dep = declare_dependency(
+ include_directories : include_directories('headers'),
+)
+
dec_dep = declare_dependency(
sources : files('headers/foo.c'),
- include_directories : include_directories('headers'),
+ dependencies : dec_sub_dep,
)
sub_dep = dec_dep.partial_dependency(includes : true)