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:
Ryan Houdek committed 2025-09-13 12:51:01 -07:00
1 parent be84a4332a
commit 736a73453f
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);