aboutsummaryrefslogtreecommitdiff
path: root/tests/test_other.py
diff options
context:
space:
mode:
authorJukka Jylänki <jujjyl@gmail.com>2013-11-22 23:09:29 +0200
committerJukka Jylänki <jujjyl@gmail.com>2013-11-22 23:09:29 +0200
commit0cd1cc8bb31a005f8addea7a3082280327ea5ba3 (patch)
tree9c91e5d645e32b86e49065e30ff169b8767264f4 /tests/test_other.py
parent7af6ac4d14404cbc9bf49e7761ec745e6c3dd773 (diff)
Fix other.test_dependency_file on Windows.
Diffstat (limited to 'tests/test_other.py')
-rw-r--r--tests/test_other.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_other.py b/tests/test_other.py
index d1230c66..5a76bf6a 100644
--- a/tests/test_other.py
+++ b/tests/test_other.py
@@ -2126,7 +2126,8 @@ int main()
assert os.path.exists(os.path.join(self.get_dir(), 'test.d')), 'No dependency file generated'
deps = open(os.path.join(self.get_dir(), 'test.d')).read()
- head, tail = deps.split( ':', 2 )
+ # Look for ': ' instead of just ':' to not confuse C:\path\ notation with make "target: deps" rule. Not perfect, but good enough for this test.
+ head, tail = deps.split(': ', 2)
assert 'test.o' in head, 'Invalid dependency target'
assert 'test.cpp' in tail and 'test.hpp' in tail, 'Invalid dependencies generated'