Make stdout redirection tests less racey 78/255678/1
authorMateusz Majewski <m.majewski2@samsung.com>
Mon, 22 Mar 2021 09:21:02 +0000 (10:21 +0100)
committerMateusz Majewski <m.majewski2@samsung.com>
Mon, 22 Mar 2021 09:23:59 +0000 (10:23 +0100)
commit3c2017c93bfb55516492ff90b0232c664e860f4b
tree72386d239dc70979cc54903ff8b9e54d34ca2197
parentc5f93302048c7e837956e5781fd4d595a9c847c7
Make stdout redirection tests less racey

Those tests are inherently racey: unlike libdlog, stdout redirection
doesn't wait until logs are stored. Therefore, if we launch a redirected
library and then quickly fetch logs, we might see only a part of the
logs. Waiting a second between those two fixes the issue.

Change-Id: I6fed704c4455cfe7cd2ff00a62e8330dfdc0d88e
tests/dlog_test.in