[compiler-rt] 9c8e93c - [nfc][asan][android] Fix test after D124057

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 22 17:16:48 PDT 2022


Author: Vitaly Buka
Date: 2022-04-22T17:16:11-07:00
New Revision: 9c8e93c1b51ea4471d84c2fc35f64aa2ac0a17e4

URL: https://github.com/llvm/llvm-project/commit/9c8e93c1b51ea4471d84c2fc35f64aa2ac0a17e4
DIFF: https://github.com/llvm/llvm-project/commit/9c8e93c1b51ea4471d84c2fc35f64aa2ac0a17e4.diff

LOG: [nfc][asan][android] Fix test after D124057

Added: 
    

Modified: 
    compiler-rt/test/sanitizer_common/TestCases/Posix/setvbuf.cpp

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/sanitizer_common/TestCases/Posix/setvbuf.cpp b/compiler-rt/test/sanitizer_common/TestCases/Posix/setvbuf.cpp
index f789bfd727d5d..e60e8b875e01b 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Posix/setvbuf.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Posix/setvbuf.cpp
@@ -25,6 +25,8 @@ void test_setbuf() {
   print_something();
 
   print_one_byte(buf);
+
+  setbuf(stdout, NULL);
 }
 
 void test_setbuffer() {
@@ -41,6 +43,8 @@ void test_setbuffer() {
   print_something();
 
   print_one_byte(buf);
+
+  setbuffer(stdout, NULL, 0);
 }
 
 void test_setlinebuf() {
@@ -67,6 +71,8 @@ void test_setvbuf() {
   print_something();
 
   print_one_byte(buf);
+
+  setvbuf(stdout, NULL, _IONBF, 0);
 }
 
 int main(void) {


        


More information about the llvm-commits mailing list