diff options
author | Max Rees <maxcrees@me.com> | 2018-01-06 23:59:18 -0500 |
---|---|---|
committer | sroracle <maxcrees@me.com> | 2018-01-07 00:02:40 -0500 |
commit | 4169eae19a75ce5c1f94f69bcee5ce2e3bed78f7 (patch) | |
tree | 1fe69293784d4d57f14559cea503e77281745cb7 /test/nx_action/unloadable_action | |
parent | 0911570bda04e4da541ef095bcdc8cc5cfd57412 (diff) |
fflush in src/list.c to make tested behavior consistent
On glibc, if output is redirected to a file, output will look like this:
touch test/ok/gif
touch test/ok/jpg
touch test/ok/png
touch test/ok/pnm
test/ok/gif
test/ok/jpg
test/ok/png
test/ok/pnm
On musl, if stdout is redirected to a file, output looks like this:
test/ok/gif
touch test/ok/gif
touch test/ok/jpg
touch test/ok/png
touch test/ok/pnm
test/ok/jpg
test/ok/png
test/ok/pnm
On glibc and musl, if stdout is interactive, it looks like this:
test/ok/gif
touch test/ok/gif
test/ok/jpg
touch test/ok/jpg
test/ok/png
touch test/ok/png
test/ok/pnm
touch test/ok/pnm
Adding two fflush calls makes all behavior look like the last example.
Test cases have been updated accordingly.
Diffstat (limited to 'test/nx_action/unloadable_action')
-rw-r--r-- | test/nx_action/unloadable_action | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/nx_action/unloadable_action b/test/nx_action/unloadable_action index c16572e..cdf3ed8 100644 --- a/test/nx_action/unloadable_action +++ b/test/nx_action/unloadable_action @@ -1,8 +1,8 @@ -rm test/fail/gif -rm test/fail/jpg -rm test/fail/png -rm test/fail/pnm test/fail/gif +rm test/fail/gif test/fail/jpg +rm test/fail/jpg test/fail/png +rm test/fail/png test/fail/pnm +rm test/fail/pnm |