[compiler-rt] r213054 - [sanitizer] De-flake one test.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Jul 15 01:46:52 PDT 2014
Author: eugenis
Date: Tue Jul 15 03:46:51 2014
New Revision: 213054
URL: http://llvm.org/viewvc/llvm-project?rev=213054&view=rev
Log:
[sanitizer] De-flake one test.
Modified:
compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/getpass.cc
Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/getpass.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/getpass.cc?rev=213054&r1=213053&r2=213054&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/getpass.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/Linux/getpass.cc Tue Jul 15 03:46:51 2014
@@ -19,8 +19,7 @@ main (int argc, char** argv)
int res = read(master, buf, sizeof(buf));
write(1, buf, res);
write(master, "password\n", 9);
- res = read(master, buf, sizeof(buf));
- write(1, buf, res);
+ while ((res = read(master, buf, sizeof(buf))) > 0) write(1, buf, res);
} else {
char *s = getpass("prompt");
assert(strcmp(s, "password") == 0);
More information about the llvm-commits
mailing list