[compiler-rt] r291339 - Follow-up for r291277: Redirect otool output to stderr.
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 6 23:41:48 PST 2017
Author: kuba.brecka
Date: Sat Jan 7 01:41:47 2017
New Revision: 291339
URL: http://llvm.org/viewvc/llvm-project?rev=291339&view=rev
Log:
Follow-up for r291277: Redirect otool output to stderr.
Tests need to output everything into a single stream, or FileCheck is sometimes confused (buffering can cause stdout/stderr to be interleaved randomly).
Modified:
compiler-rt/trunk/test/asan/TestCases/Darwin/uuid.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Darwin/uuid.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Darwin/uuid.cc?rev=291339&r1=291338&r2=291339&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Darwin/uuid.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Darwin/uuid.cc Sat Jan 7 01:41:47 2017
@@ -10,7 +10,7 @@
int main(int argc, char *argv[]) {
char buf[2048];
- snprintf(buf, sizeof(buf), "otool -l %s", argv[0]);
+ snprintf(buf, sizeof(buf), "otool -l %s 1>&2", argv[0]);
system(buf);
// CHECK: cmd LC_UUID
// CHECK-NEXT: cmdsize 24
More information about the llvm-commits
mailing list