diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 16:52:21 -0700 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-01 22:49:33 -0700 |
commit | 605f05f635e7300f73e45b770b95f8e5d74e250f (patch) | |
tree | 45d205e6a2bece598f9545ddaed2ec3a8590c5a1 | |
parent | 78ec7981c8e931fe72998b0cbe144304d6506803 (diff) | |
download | rneovim-605f05f635e7300f73e45b770b95f8e5d74e250f.tar.gz rneovim-605f05f635e7300f73e45b770b95f8e5d74e250f.tar.bz2 rneovim-605f05f635e7300f73e45b770b95f8e5d74e250f.zip |
test: shell-test.c: flush all streams
-rw-r--r-- | test/functional/fixtures/shell-test.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/fixtures/shell-test.c b/test/functional/fixtures/shell-test.c index a221a31bde..b95e563932 100644 --- a/test/functional/fixtures/shell-test.c +++ b/test/functional/fixtures/shell-test.c @@ -13,7 +13,7 @@ static void flush_wait(void) { - fflush(stdout); + fflush(NULL); usleep(10*1000); // Wait 10 ms. } @@ -78,10 +78,10 @@ int main(int argc, char **argv) } for (int i = 0; i < count; i++) { printf("%d: %s\n", i, argv[3]); - fflush(stdout); if (i % 100 == 0) { usleep(1000); // Wait 1 ms (simulate typical output). } + fflush(NULL); } } else if (strcmp(argv[1], "UTF-8") == 0) { // test split-up UTF-8 sequence @@ -126,7 +126,7 @@ int main(int argc, char **argv) fprintf(stderr, "Unknown first argument: %s\n", argv[1]); return 3; } - fflush(stdout); + fflush(NULL); return 0; } else if (argc == 1) { fprintf(stderr, "ready $ "); |