python bindings: Include local headers the right way.

llvm-svn: 124955
This commit is contained in:
Tobias Grosser 2011-02-05 17:53:55 +00:00
parent 0e19c192f5
commit 4748651060
1 changed files with 3 additions and 4 deletions

View File

@ -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
""")
])