summaryrefslogtreecommitdiffstats
path: root/third_party/python/gyp/test/variables/empty/gyptest-empty.py
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/python/gyp/test/variables/empty/gyptest-empty.py')
-rwxr-xr-xthird_party/python/gyp/test/variables/empty/gyptest-empty.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/third_party/python/gyp/test/variables/empty/gyptest-empty.py b/third_party/python/gyp/test/variables/empty/gyptest-empty.py
new file mode 100755
index 0000000000..4cbe166fdc
--- /dev/null
+++ b/third_party/python/gyp/test/variables/empty/gyptest-empty.py
@@ -0,0 +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 TestGyp
+
+test = TestGyp.TestGyp()
+
+test.run_gyp('empty.gyp')
+
+test.pass_test()