From: Tobias Grosser Date: Sat, 5 Feb 2011 17:53:55 +0000 (+0000) Subject: python bindings: Include local headers the right way. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=88f9c6ca6eb0d4c48687dfed4d94292209c5a919;p=clang 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 --- 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 """) ])