From 22c96ab58948d6f7e8e68eb681550c8f5c27134b Mon Sep 17 00:00:00 2001 From: Sven Eden Date: Thu, 23 Aug 2018 18:39:52 +0200 Subject: Prep v239: Mask unneedd tests test_copy_atomic() and assert_equal_fd() --- src/test/test-copy.c | 4 ++++ src/test/test-fd-util.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/test/test-copy.c b/src/test/test-copy.c index b3dfedd36..1127ace44 100644 --- a/src/test/test-copy.c +++ b/src/test/test-copy.c @@ -237,6 +237,7 @@ static void test_copy_bytes_regular_file(const char *src, bool try_reflink, uint unlink(fn3); } +#if 0 /// UNNEEDED by elogind static void test_copy_atomic(void) { _cleanup_(rm_rf_physical_and_freep) char *p = NULL; const char *q; @@ -254,6 +255,7 @@ static void test_copy_atomic(void) { assert_se(copy_file_atomic("/etc/fstab", q, 0644, 0, COPY_REPLACE) >= 0); } +#endif // 0 int main(int argc, char *argv[]) { log_set_max_level(LOG_DEBUG); @@ -270,7 +272,9 @@ int main(int argc, char *argv[]) { test_copy_bytes_regular_file(argv[0], true, 1000); test_copy_bytes_regular_file(argv[0], false, 32000); /* larger than copy buffer size */ test_copy_bytes_regular_file(argv[0], true, 32000); +#if 0 /// UNNEEDED by elogind test_copy_atomic(); +#endif // 0 return 0; } diff --git a/src/test/test-fd-util.c b/src/test/test-fd-util.c index 4328442ad..638fe3db4 100644 --- a/src/test/test-fd-util.c +++ b/src/test/test-fd-util.c @@ -225,6 +225,7 @@ static void test_rearrange_stdio(void) { } } +#if 0 /// UNNEEDED by elogind static void assert_equal_fd(int fd1, int fd2) { for (;;) { @@ -246,7 +247,6 @@ static void assert_equal_fd(int fd1, int fd2) { } } -#if 0 /// UNNEEDED by elogind static void test_fd_duplicate_data_fd(void) { _cleanup_close_ int fd1 = -1, fd2 = -1; _cleanup_(close_pairp) int sfd[2] = { -1, -1 }; -- cgit v1.2.3