summaryrefslogtreecommitdiffstats
path: root/bindings/python/tests
diff options
context:
space:
mode:
authorTobias Grosser <grosser@fim.uni-passau.de>2011-02-05 17:53:55 +0000
committerTobias Grosser <grosser@fim.uni-passau.de>2011-02-05 17:53:55 +0000
commit88f9c6ca6eb0d4c48687dfed4d94292209c5a919 (patch)
treeccd31a9201595f87215b318e93846409ba1268a4 /bindings/python/tests
parentf784ff0c8abe4e935fbb9c8d67230c55817ccac0 (diff)
python bindings: Include local headers the right way.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124955 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings/python/tests')
-rw-r--r--bindings/python/tests/cindex/test_translation_unit.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/bindings/python/tests/cindex/test_translation_unit.py b/bindings/python/tests/cindex/test_translation_unit.py
index 3c05c3f06a..c83c4972ed 100644
--- a/bindings/python/tests/cindex/test_translation_unit.py
+++ b/bindings/python/tests/cindex/test_translation_unit.py
@@ -27,14 +27,13 @@ def test_parse_arguments():
def test_unsaved_files():
index = Index.create()
- # FIXME: Why can't we just use "fake.h" here (instead of /tmp/fake.h)?
- tu = index.parse('fake.c', unsaved_files = [
+ tu = index.parse('fake.c', ['-I./'], unsaved_files = [
('fake.c', """
-#include "/tmp/fake.h"
+#include "fake.h"
int x;
int SOME_DEFINE;
"""),
- ('/tmp/fake.h', """
+ ('./fake.h', """
#define SOME_DEFINE y
""")
])