mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
* tests(ls): Add GNU-compat TIME_STYLE tests (#4627) Add comprehensive test coverage for ls TIME_STYLE behavior to align with GNU coreutils: - test_ls_time_style_env_full_iso: TIME_STYLE environment variable with full-iso format - test_ls_time_style_iso_recent_and_older: --time-style=iso formatting for recent vs older files - test_ls_time_style_posix_locale_override: Locale-based fallback with LC_ALL=POSIX - test_ls_time_style_precedence_last_wins: Precedence between --full-time and --time-style - test_ls_time_sort_without_long: Time-based sorting without -l flag These tests directly address remaining gaps highlighted in #4627 for tests/ls/ls-time.sh from the GNU test suite. * tests(ls): use set_modified instead of touch; simplify assertions - Replace #[cfg(feature = "touch")] with set_modified(UNIX_EPOCH) in test_ls_time_style_iso_recent_and_older - Remove conditional blocks in test_ls_time_sort_without_long and set mtimes via set_modified - Simplify assertion to assert_ne!(def, t) to compare full outputs Rationale: Improves determinism, portability, and reduces branching as suggested by maintainer cakebaker in PR review comments. |
||
|---|---|---|
| .. | ||
| benches/factor | ||
| by-util | ||
| fixtures | ||
| uutests | ||
| test_localization_and_colors.rs | ||
| test_util_name.rs | ||
| tests.rs | ||