Clean up testcases to make them proper


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3410 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Linker/2002-07-17-LinkTest2.ll b/test/Linker/2002-07-17-LinkTest2.ll
index 322f380..c1db063 100644
--- a/test/Linker/2002-07-17-LinkTest2.ll
+++ b/test/Linker/2002-07-17-LinkTest2.ll
@@ -1,7 +1,6 @@
 ; This fails linking when it is linked with an empty file as the first object file
 
-; RUN: touch Output/LinkTest1.ll
-; RUN: as Output/LinkTest1.ll
+; RUN: as > Output/LinkTest1.bc < /dev/null
 ; RUN: as < %s > Output/LinkTest2.bc
 ; RUN: link Output/LinkTest[12].bc
 
diff --git a/test/Linker/testlink1.ll b/test/Linker/testlink1.ll
index 12cf652..dd89d8b 100644
--- a/test/Linker/testlink1.ll
+++ b/test/Linker/testlink1.ll
@@ -1,3 +1,6 @@
+; RUN: as < %s > Output/%s.bc
+; RUN: as < testlink2.ll > Output/testlink2.bc
+; RUN: link Output/%s.bc Output/testlink2.bc
 
 %MyVar     = uninitialized global int
 %MyIntList = global { \2 *, int } { { \2, int }* null, int 17 }