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.
This commit is contained in:
Dylan Baker 2019-03-28 09:33:11 -07:00 committed by Nirbheek Chauhan
parent c0d287c1bf
commit b791ede1b1
1 changed files with 5 additions and 1 deletions

View File

@ -12,9 +12,13 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
dec_sub_dep = declare_dependency(
include_directories : include_directories('headers'),
)
dec_dep = declare_dependency( dec_dep = declare_dependency(
sources : files('headers/foo.c'), sources : files('headers/foo.c'),
include_directories : include_directories('headers'), dependencies : dec_sub_dep,
) )
sub_dep = dec_dep.partial_dependency(includes : true) sub_dep = dec_dep.partial_dependency(includes : true)