From 0e2ca014bdf92b405f7c02f2d37532f4c9b9b663 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Wed, 7 Sep 2011 21:50:18 +0000 Subject: [PATCH] [arcmt] Try fixing the windows buildbot. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@139262 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/ARCMT/migrate-space-in-path.m | 10 ++++------ test/ARCMT/with space/test.h | 15 +++++++++++++++ test/ARCMT/with space/test.h.result | 13 +++++++++++++ test/ARCMT/with space/test1.m.in | 6 ++++++ test/ARCMT/with space/test1.m.in.result | 5 +++++ test/ARCMT/with space/test2.m.in | 6 ++++++ test/ARCMT/with space/test2.m.in.result | 5 +++++ 7 files changed, 54 insertions(+), 6 deletions(-) create mode 100644 test/ARCMT/with space/test.h create mode 100644 test/ARCMT/with space/test.h.result create mode 100644 test/ARCMT/with space/test1.m.in create mode 100644 test/ARCMT/with space/test1.m.in.result create mode 100644 test/ARCMT/with space/test2.m.in create mode 100644 test/ARCMT/with space/test2.m.in.result diff --git a/test/ARCMT/migrate-space-in-path.m b/test/ARCMT/migrate-space-in-path.m index 1e2f6380e1..ee8308f11c 100644 --- a/test/ARCMT/migrate-space-in-path.m +++ b/test/ARCMT/migrate-space-in-path.m @@ -1,7 +1,5 @@ -// RUN: mkdir -p %t/"with space" -// RUN: cp %S/Inputs/* %t/"with space" -// RUN: %clang_cc1 -arcmt-migrate -arcmt-migrate-directory %t.migrate %t/"with space"/test1.m.in -x objective-c -fobjc-nonfragile-abi -// RUN: %clang_cc1 -arcmt-migrate -arcmt-migrate-directory %t.migrate %t/"with space"/test2.m.in -x objective-c -fobjc-nonfragile-abi -// RUN: c-arcmt-test -arcmt-migrate-directory %t.migrate | arcmt-test -verify-transformed-files %t/"with space"/test1.m.in.result %t/"with space"/test2.m.in.result %t/"with space"/test.h.result // RUN: rm -rf %t.migrate -// RUN: rm -rf %t +// RUN: %clang_cc1 -arcmt-migrate -arcmt-migrate-directory %t.migrate %S/"with space"/test1.m.in -x objective-c -fobjc-nonfragile-abi +// RUN: %clang_cc1 -arcmt-migrate -arcmt-migrate-directory %t.migrate %S/"with space"/test2.m.in -x objective-c -fobjc-nonfragile-abi +// RUN: c-arcmt-test -arcmt-migrate-directory %t.migrate | arcmt-test -verify-transformed-files %S/"with space"/test1.m.in.result %S/"with space"/test2.m.in.result %S/"with space"/test.h.result +// RUN: rm -rf %t.migrate diff --git a/test/ARCMT/with space/test.h b/test/ARCMT/with space/test.h new file mode 100644 index 0000000000..756295f27e --- /dev/null +++ b/test/ARCMT/with space/test.h @@ -0,0 +1,15 @@ +@protocol NSObject +- (oneway void)release; +@end + +#ifdef PART1 +static inline void part1(id p) { + [p release]; +} +#endif + +#ifdef PART2 +static inline void part2(id p) { + [p release]; +} +#endif diff --git a/test/ARCMT/with space/test.h.result b/test/ARCMT/with space/test.h.result new file mode 100644 index 0000000000..0638a3378c --- /dev/null +++ b/test/ARCMT/with space/test.h.result @@ -0,0 +1,13 @@ +@protocol NSObject +- (oneway void)release; +@end + +#ifdef PART1 +static inline void part1(id p) { +} +#endif + +#ifdef PART2 +static inline void part2(id p) { +} +#endif diff --git a/test/ARCMT/with space/test1.m.in b/test/ARCMT/with space/test1.m.in new file mode 100644 index 0000000000..8416a88965 --- /dev/null +++ b/test/ARCMT/with space/test1.m.in @@ -0,0 +1,6 @@ +#define PART1 +#include "test.h" + +void test1(id p) { + [p release]; +} diff --git a/test/ARCMT/with space/test1.m.in.result b/test/ARCMT/with space/test1.m.in.result new file mode 100644 index 0000000000..f351fe6c83 --- /dev/null +++ b/test/ARCMT/with space/test1.m.in.result @@ -0,0 +1,5 @@ +#define PART1 +#include "test.h" + +void test1(id p) { +} diff --git a/test/ARCMT/with space/test2.m.in b/test/ARCMT/with space/test2.m.in new file mode 100644 index 0000000000..99f87b0721 --- /dev/null +++ b/test/ARCMT/with space/test2.m.in @@ -0,0 +1,6 @@ +#define PART2 +#include "test.h" + +void test2(id p) { + [p release]; +} diff --git a/test/ARCMT/with space/test2.m.in.result b/test/ARCMT/with space/test2.m.in.result new file mode 100644 index 0000000000..f8e918ce25 --- /dev/null +++ b/test/ARCMT/with space/test2.m.in.result @@ -0,0 +1,5 @@ +#define PART2 +#include "test.h" + +void test2(id p) { +} -- 2.40.0