1 #!/usr/bin/env python 2 3 # Copyright (c) 2014 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 """ 8 Ensure that when debug information is not output, a pdb is not expected. 9 """ 10 11 import TestGyp 12 13 import os 14 import sys 15 16 if sys.platform == 'win32': 17 test = TestGyp.TestGyp() 18 CHDIR = 'linker-flags' 19 test.run_gyp('pdb-output.gyp', chdir=CHDIR) 20 test.build('pdb-output.gyp', 'test_pdb_output_disabled', chdir=CHDIR) 21 # Make sure that the build doesn't expect a PDB to be generated when there 22 # will be none. 23 test.up_to_date('pdb-output.gyp', 'test_pdb_output_disabled', chdir=CHDIR) 24 25 test.pass_test() 26