diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-06 00:03:47 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-07-06 00:03:47 +0000 |
| commit | 1561c6cf54fdc244006cc8dc3708bebdf8516890 (patch) | |
| tree | 6a44aa937ebd22883aa5ba5a5c4393651e3e312a /clang/test/Index/find-defs.c | |
| parent | c296b89d512cd03bf94c786f64c60922dfca9baa (diff) | |
| download | bcm5719-llvm-1561c6cf54fdc244006cc8dc3708bebdf8516890.tar.gz bcm5719-llvm-1561c6cf54fdc244006cc8dc3708bebdf8516890.zip | |
Having tests that depend on previously created files is bad idea. Fix them to be self-sufficient.
llvm-svn: 74810
Diffstat (limited to 'clang/test/Index/find-defs.c')
| -rw-r--r-- | clang/test/Index/find-defs.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/clang/test/Index/find-defs.c b/clang/test/Index/find-defs.c index d17dc0b1427..5e034bbec69 100644 --- a/clang/test/Index/find-defs.c +++ b/clang/test/Index/find-defs.c @@ -1,8 +1,10 @@ -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/foo.h:1:14 -print-defs | count 1 && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/foo.h:1:14 -print-defs | grep 't2.c:3:5,' && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/foo.h:3:9 -print-defs | count 1 && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/foo.h:3:9 -print-defs | grep 't1.c:3:6,' && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/foo.h:4:9 -print-defs | count 1 && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/foo.h:4:9 -print-defs | grep 't2.c:5:6,' && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/t1.c:8:7 -print-defs | count 1 && -// RUN: index-test %T/t1.ast %T/t2.ast -point-at %S/t1.c:8:7 -print-defs | grep 't2.c:5:6,' +// RUN: clang-cc -emit-pch %S/t1.c -o %t1.ast && +// RUN: clang-cc -emit-pch %S/t2.c -o %t2.ast && +// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-defs | count 1 && +// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:1:14 -print-defs | grep 't2.c:3:5,' && +// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-defs | count 1 && +// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:3:9 -print-defs | grep 't1.c:3:6,' && +// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-defs | count 1 && +// RUN: index-test %t1.ast %t2.ast -point-at %S/foo.h:4:9 -print-defs | grep 't2.c:5:6,' && +// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs | count 1 && +// RUN: index-test %t1.ast %t2.ast -point-at %S/t1.c:8:7 -print-defs | grep 't2.c:5:6,' |

