mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 14:00:16 +02:00
FEXLinuxTests: Adds a small sleep for consistency
Sleep a second to make this test more consistent. Sometimes the filesystem times are slightly different than wallclock times.
This commit is contained in:
1 file changed
+3
@@ -62,6 +62,9 @@ TEST_CASE("futimesat - valid - null") {
|
||||
// Remove the nanoseconds to ensure consistent time setting.
|
||||
time.tv_nsec = 0;
|
||||
|
||||
// A small sleep because CPU time and filesystem time might be slightly off.
|
||||
sleep(1);
|
||||
|
||||
// Sets the time to "Now".
|
||||
REQUIRE(compat_futimesat(fd, nullptr, nullptr) == 0);
|
||||
REQUIRE(unlinkat(AT_FDCWD, file, 0) != -1);
|
||||
|
||||
Reference in new issue
Block a user