From 88f9c6ca6eb0d4c48687dfed4d94292209c5a919 Mon Sep 17 00:00:00 2001 From: Tobias Grosser Date: Sat, 5 Feb 2011 17:53:55 +0000 Subject: [PATCH] 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 --- bindings/python/tests/cindex/test_translation_unit.py | 7 +++---- 1 file 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 """) ]) -- 2.40.0