[OpenMP] Output written by tests should go to build directory

git-svn-id: https://llvm.org/svn/llvm-project/openmp/trunk@351332 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/runtime/test/lit.cfg b/runtime/test/lit.cfg
index 3c6b57d..1d050c4 100644
--- a/runtime/test/lit.cfg
+++ b/runtime/test/lit.cfg
@@ -127,7 +127,7 @@
 config.substitutions.append(("%python", '"%s"' % (sys.executable)))
 
 if config.has_ompt:
-    config.substitutions.append(("FileCheck", "tee %%s.out | %s" % config.test_filecheck))
+    config.substitutions.append(("FileCheck", "tee %%t.out | %s" % config.test_filecheck))
     config.substitutions.append(("%sort-threads", "sort -n -s"))
     if config.operating_system == 'Windows':
         # No such environment variable on Windows.