Skip to content

Commit

Permalink
Turns out cp [anywhere] /dev/null succeeds on FBSD.
Browse files Browse the repository at this point in the history
Adjust test to use dd instead, since I couldn't find a flag to cp
that would alter this behavior in the right way.

Signed-off-by: Rich Ercolani <[email protected]>
  • Loading branch information
rincebrain committed May 14, 2021
1 parent d6c5821 commit 08608d4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ log_onexit cleanup

log_must tar --directory $TEST_BASE_DIR -xzSf $TESTPOOL_ZSTD_FILE
log_must zpool import -d $TEST_BASE_DIR testpool_zstd
log_must cp /testpool_zstd/x86_64/zstd /dev/null
log_must cp /testpool_zstd/sparc64/zstd /dev/null
log_must cp /testpool_zstd/ppc64_fbsd/zstd /dev/null
log_must dd if=/testpool_zstd/x86_64/zstd of=/dev/null
log_must dd if=/testpool_zstd/sparc64/zstd of=/dev/null
log_must dd if=/testpool_zstd/ppc64_fbsd/zstd of=/dev/null

log_pass "Reading from mangled zstd datasets works as expected."

0 comments on commit 08608d4

Please sign in to comment.