We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91b1ab3 commit 6f3c5daCopy full SHA for 6f3c5da
1 file changed
src/uu/ls/src/ls.rs
@@ -1144,6 +1144,13 @@ pub fn list(locs: Vec<&Path>, config: &Config) -> UResult<()> {
1144
if config.dired && !config.hyperlink {
1145
dired::print_dired_output(config, &dired, &mut state.out)?;
1146
}
1147
+
1148
+ // Check all nodes are cleared after recursive listing in integration tests.
1149
+ // FIXME: Turn into a proper test; integration testing most likely requires
1150
+ // hard-linked directories, so it is a no-go. A unit test may be more
1151
+ // feasible given a heavy refactor that decouples [`depth_first_list`].
1152
+ debug_assert!(state.listed_ancestors.is_empty());
1153
1154
Ok(())
1155
1156
0 commit comments