]> granicus.if.org Git - clang/commitdiff
python bindings: Include local headers the right way.
authorTobias Grosser <grosser@fim.uni-passau.de>
Sat, 5 Feb 2011 17:53:55 +0000 (17:53 +0000)
committerTobias Grosser <grosser@fim.uni-passau.de>
Sat, 5 Feb 2011 17:53:55 +0000 (17:53 +0000)
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

index 3c05c3f06af4415c3a70d39ccfa1d81314f308e3..c83c4972edc18ca81b26192fcfe21ce4447ad078 100644 (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
 """)
             ])