From f5ae859c388b3412de804c1022f6cfcc3e640b07 Mon Sep 17 00:00:00 2001 From: anastygnome Date: Sat, 4 Jun 2022 12:08:36 +0200 Subject: [PATCH] Adds a test for sync. It is probably too hard to verify that the sync is actually performed, so we just check that we have a test using the code path, pro forma. Signed-off-by: anastygnome --- tests/by-util/test_df.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/by-util/test_df.rs b/tests/by-util/test_df.rs index 4206c4c82..13cfdcef4 100644 --- a/tests/by-util/test_df.rs +++ b/tests/by-util/test_df.rs @@ -28,6 +28,11 @@ fn test_df_compatible_si() { new_ucmd!().arg("-aH").succeeds(); } +#[test] +fn test_df_compatible_sync() { + new_ucmd!().arg("--sync").succeeds(); +} + #[test] fn test_df_arguments_override_themselves() { new_ucmd!().args(&["--help", "--help"]).succeeds();