summaryrefslogtreecommitdiffstats
path: root/tests/by-util/test_ls.rs
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2024-06-23 22:01:32 +0200
committerSylvestre Ledru <sylvestre@debian.org>2024-06-24 10:27:37 +0200
commitececddd672f88fc07d911bd520e46809e47fef59 (patch)
tree8fb281fcdd14476fc6374132d5ca08702ad34eb4 /tests/by-util/test_ls.rs
parent4d705621e648a7eb062d9fc84d693b72f08c65c4 (diff)
ls: If we have --dired --hyperlink, we don't show dired but we still want to see the
long format Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Diffstat (limited to 'tests/by-util/test_ls.rs')
-rw-r--r--tests/by-util/test_ls.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/by-util/test_ls.rs b/tests/by-util/test_ls.rs
index f8f638fd7..edb2cd62d 100644
--- a/tests/by-util/test_ls.rs
+++ b/tests/by-util/test_ls.rs
@@ -3956,6 +3956,8 @@ fn test_ls_dired_hyperlink() {
.arg("-R")
.succeeds()
.stdout_contains("file://")
+ .stdout_contains("-rw") // we should have the long output
+ // even if dired isn't actually run
.stdout_does_not_contain("//DIRED//");
// dired is passed after hyperlink
// so we will have DIRED output