| Index: test/variables/empty/gyptest-empty.py
|
| diff --git a/test/actions-multiple-outputs/src/touch.py b/test/variables/empty/gyptest-empty.py
|
| old mode 100644
|
| new mode 100755
|
| similarity index 54%
|
| copy from test/actions-multiple-outputs/src/touch.py
|
| copy to test/variables/empty/gyptest-empty.py
|
| index bc61267f39cea074a7be4ce490407a5f1249687b..4cbe166fdc3624c62c6d8075abd6944a934f4e8f
|
| --- a/test/actions-multiple-outputs/src/touch.py
|
| +++ b/test/variables/empty/gyptest-empty.py
|
| @@ -1,16 +1,19 @@
|
| #!/usr/bin/env python
|
| -#
|
| +
|
| # Copyright (c) 2015 Google Inc. All rights reserved.
|
| # Use of this source code is governed by a BSD-style license that can be
|
| # found in the LICENSE file.
|
|
|
| +"""
|
| +Test that empty variable names don't cause infinite loops.
|
| +"""
|
| +
|
| import os
|
| -import sys
|
|
|
| -"""Cross-platform touch."""
|
| +import TestGyp
|
| +
|
| +test = TestGyp.TestGyp()
|
| +
|
| +test.run_gyp('empty.gyp')
|
|
|
| -for fname in sys.argv[1:]:
|
| - if os.path.exists(fname):
|
| - os.utime(fname, None)
|
| - else:
|
| - open(fname, 'w').close()
|
| +test.pass_test()
|
|
|