blob: 3a8300d44e0031509237b72baaa5882e14e749ac [file] [log] [blame]
Ben Murdoch097c5b22016-05-18 11:27:45 +01001#!/usr/bin/env python
2
3# Copyright (c) 2013 Google Inc. All rights reserved.
4# Use of this source code is governed by a BSD-style license that can be
5# found in the LICENSE file.
6
7"""
8Verify that a target marked as 'link_dependency==1' isn't being pulled into
9the 'none' target's dependency (which would otherwise lead to a dependency
10cycle in ninja).
11"""
12
13import TestGyp
14
15# See https://codereview.chromium.org/177043010/#msg15 for why this doesn't
16# work with cmake.
17test = TestGyp.TestGyp(formats=['!cmake'])
18
19test.run_gyp('test.gyp')
20test.build('test.gyp', 'main')
21
22# If running gyp worked, all is well.
23test.pass_test()