Files
u-boot/test
Rasmus Villemoes 8b0619579b cmd: test: fix handling of single-argument form of test
POSIX states that

  0 arguments:
      Exit false (1).
  1 argument:
      Exit true (0) if $1 is not null; otherwise, exit false.

and at least bash and busybox sh behave that way.

The current 'argc < 3' does the right thing for a non-existing or
empty argv[1], but not for a non-empty argv[1]. Fix that and add
corresponding test cases.

Signed-off-by: Rasmus Villemoes <ravi@prevas.dk>
Tested-by: Anshul Dalal <anshuld@ti.com>
2026-03-25 14:37:55 -06:00
..
2026-02-23 13:45:55 -06:00
2025-02-11 20:12:36 -06:00
2025-04-11 12:16:44 -06:00
2025-09-24 11:04:11 -06:00
2026-03-09 15:26:34 -06:00
2025-02-11 20:12:36 -06:00
2023-04-03 06:53:53 +12:00
2025-10-15 14:17:06 -06:00
2025-01-24 14:34:41 -06:00