HomeFreeBSD

ZTS: fix flakiness in cp_files_002_pos

Description

ZTS: fix flakiness in cp_files_002_pos

Fix RANDOM to not return zero.

Overwriting with dd ... count=0 does not test anything.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Robert Evans <evansr@google.com>
Closes #16029

Details

Provenance
Robert Evans <evansr@google.com>Authored on Mar 27 2024, 9:59 PM
GitHub <noreply@github.com>Committed on Mar 27 2024, 9:59 PM
Parents
rG0c8eb974ff3b: BRT: Check pool clone stats in more tests
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGe39e20b6dc73: ZTS: fix flakiness in cp_files_002_pos (authored by Robert Evans <evansr@google.com>).Mar 27 2024, 9:59 PM