42eb238e49
* Tue Mar 15 2022 Florian Weimer <fweimer@redhat.com> - 2.34-29 - Sync with upstream branch release/2.34/master, commit 224d8c1890b6c57c7e4e8ddbb792dd9552086704: - debug: Synchronize feature guards in fortified functions [BZ #28746] - debug: Autogenerate _FORTIFY_SOURCE tests - Enable _FORTIFY_SOURCE=3 for gcc 12 and above - fortify: Fix spurious warning with realpath - __glibc_unsafe_len: Fix comment - debug: Add tests for _FORTIFY_SOURCE=3 - Make sure that the fortified function conditionals are constant - Don't add access size hints to fortifiable functions - nss: Protect against errno changes in function lookup (bug 28953) - nss: Do not mention NSS test modules in <gnu/lib-names.h> - io: Add fsync call in tst-stat - hppa: Fix warnings from _dl_lookup_address - nptl: Fix cleanups for stack grows up [BZ# 28899] - hppa: Revise gettext trampoline design - hppa: Fix swapcontext - Fix elf/tst-audit2 on hppa - localedef: Handle symbolic links when generating locale-archive - NEWS: Add a bug fix entry for BZ #28896 - x86: Fix TEST_NAME to make it a string in tst-strncmp-rtm.c - x86: Test wcscmp RTM in the wcsncmp overflow case [BZ #28896] - x86: Fallback {str|wcs}cmp RTM in the ncmp overflow case [BZ #28896] - string: Add a testcase for wcsncmp with SIZE_MAX [BZ #28755] - linux: fix accuracy of get_nprocs and get_nprocs_conf [BZ #28865] - Add reference to BZ#28860 on NEWS - linux: Fix missing __convert_scm_timestamps (BZ #28860) Resolves: #2063230 Resolves: #2033683 Resolves: #2063041 Resolves: #2063142
27 lines
911 B
Diff
27 lines
911 B
Diff
commit b5032c3d37aa614644c7afbad33bb8226a52e6da
|
|
Author: Florian Weimer <fweimer@redhat.com>
|
|
Date: Mon Feb 28 11:50:41 2022 +0100
|
|
|
|
io: Add fsync call in tst-stat
|
|
|
|
io/tst-stat and io/tst-stat-lfs fail sporadically on the Fedora
|
|
builders, and this change hopefully helps to avoid the issue.
|
|
|
|
(cherry picked from commit ae132284092edc5885315b44cd17d5ea91177e49)
|
|
|
|
diff --git a/io/tst-stat.c b/io/tst-stat.c
|
|
index 82e965de6ad87f61..be20cf16d70d05cc 100644
|
|
--- a/io/tst-stat.c
|
|
+++ b/io/tst-stat.c
|
|
@@ -69,6 +69,10 @@ do_test (void)
|
|
TEST_VERIFY_EXIT (fd >= 0);
|
|
support_write_file_string (path, "abc");
|
|
|
|
+ /* This should help to prevent delayed allocation, which may result
|
|
+ in a spurious stx_blocks/st_blocks difference. */
|
|
+ fsync (fd);
|
|
+
|
|
bool check_ns = support_stat_nanoseconds (path);
|
|
if (!check_ns)
|
|
printf ("warning: timestamp with nanoseconds not supported\n");
|