summaryrefslogtreecommitdiff
path: root/Makefile-libglnx.am
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2017-03-01 22:13:14 -0500
committerColin Walters <walters@verbum.org>2017-03-02 15:43:42 -0500
commitc83ec7f213bd2e435043a435906e46aa9c0a2b6a (patch)
treec4ff36f835c0d340f42d4c4652235b136c1567db /Makefile-libglnx.am
parent5309e363aa30d2108a264ae35d8d870ee3e0c443 (diff)
downloadlibglnx-c83ec7f213bd2e435043a435906e46aa9c0a2b6a.tar.gz
fdio: Expose wrappers for renameat2() EXCHANGE and NOREPLACE
I want the `RENAME_EXCHANGE` version for rpm-ostree, to atomically swap `/usr/share/rpm` (a directory) with a new verison. While we're here we might as well expose `RENAME_NOREPLACE` in case something else wants it. These both have fallbacks to the non-atomic version. Closes: https://github.com/GNOME/libglnx/pull/36
Diffstat (limited to 'Makefile-libglnx.am')
-rw-r--r--Makefile-libglnx.am9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile-libglnx.am b/Makefile-libglnx.am
index d3a46e5..dfe6526 100644
--- a/Makefile-libglnx.am
+++ b/Makefile-libglnx.am
@@ -52,9 +52,14 @@ libglnx_la_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
libglnx_la_LDFLAGS = -avoid-version -Bsymbolic-functions -export-symbols-regex "^glnx_" -no-undefined -export-dynamic
libglnx_la_LIBADD = $(libglnx_libs)
-TESTS += test-libglnx-xattrs
+libglnx_tests = test-libglnx-xattrs test-libglnx-fdio
+TESTS += $(libglnx_tests)
-check_PROGRAMS += test-libglnx-xattrs
+check_PROGRAMS += $(libglnx_tests)
test_libglnx_xattrs_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-xattrs.c
test_libglnx_xattrs_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
test_libglnx_xattrs_LDADD = $(libglnx_libs) libglnx.la
+
+test_libglnx_fdio_SOURCES = $(libglnx_srcpath)/tests/test-libglnx-fdio.c
+test_libglnx_fdio_CFLAGS = $(AM_CFLAGS) $(libglnx_cflags)
+test_libglnx_fdio_LDADD = $(libglnx_libs) libglnx.la