[cfe-commits] r124955 - /cfe/trunk/bindings/python/tests/cindex/test_translation_unit.py
Tobias Grosser
grosser at fim.uni-passau.de
Sat Feb 5 09:53:56 PST 2011
Author: grosser
Date: Sat Feb 5 11:53:55 2011
New Revision: 124955
URL: http://llvm.org/viewvc/llvm-project?rev=124955&view=rev
Log:
python bindings: Include local headers the right way.
Modified:
cfe/trunk/bindings/python/tests/cindex/test_translation_unit.py
Modified: cfe/trunk/bindings/python/tests/cindex/test_translation_unit.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/bindings/python/tests/cindex/test_translation_unit.py?rev=124955&r1=124954&r2=124955&view=diff
==============================================================================
--- cfe/trunk/bindings/python/tests/cindex/test_translation_unit.py (original)
+++ cfe/trunk/bindings/python/tests/cindex/test_translation_unit.py Sat Feb 5 11:53:55 2011
@@ -27,14 +27,13 @@
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
""")
])
More information about the cfe-commits
mailing list