]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/test/test-fileio.c
tests: stop using `freopen` in `test-fileio`
authorEvegeny Vereshchagin <evvers@ya.ru>
Mon, 5 Mar 2018 21:23:33 +0000 (21:23 +0000)
committerEvegeny Vereshchagin <evvers@ya.ru>
Mon, 5 Mar 2018 21:57:14 +0000 (21:57 +0000)
commit362973902ca8501cad5e32db3820d7c66486b7a7
tree704f804f37f7e408783bbf97f6142580f39ed690
parent07a35e846b7986d3c02eca99fa291f6869035c58
tests: stop using `freopen` in `test-fileio`

This helps get around a bug confusing `glibc` and making the test bail
out with the following error under `asan` on `x86`:

Fatal error: glibc detected an invalid stdio handle
Aborted (core dumped)

The bug has been reported in https://github.com/google/sanitizers/issues/778,
but it is unlikely to be fixed anytime soon.
src/test/test-fileio.c