Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: test/variables/empty/gyptest-empty.py

Issue 1364373004: Fix infinite loop on empty variable name. (Closed) Base URL: https://chromium.googlesource.com/external/gyp@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/variables/empty/empty.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2
3 # Copyright (c) 2015 Google Inc. All rights reserved. 3 # Copyright (c) 2015 Google Inc. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """
8 Test that empty variable names don't cause infinite loops.
9 """
10
7 import os 11 import os
8 import sys
9 12
10 """Cross-platform touch.""" 13 import TestGyp
11 14
12 for fname in sys.argv[1:]: 15 test = TestGyp.TestGyp()
13 if os.path.exists(fname): 16
14 os.utime(fname, None) 17 test.run_gyp('empty.gyp')
15 else: 18
16 open(fname, 'w').close() 19 test.pass_test()
OLDNEW
« no previous file with comments | « test/variables/empty/empty.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698