mirror of
https://github.com/kdave/btrfs-progs
synced 2024-12-26 08:02:21 +00:00
btrfs-progs: tests: stream dump and max_error counts
The --dump option of receive must also respect the --max-errors parameter. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
53e8014369
commit
639d949f9f
16
tests/misc-tests/036-receive-dump-invalid-stream/test.sh
Executable file
16
tests/misc-tests/036-receive-dump-invalid-stream/test.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
# https://bugzilla.kernel.org/show_bug.cgi?id=200085
|
||||
#
|
||||
# The --dump option should follow the --max-errors and not loop indefinetelly
|
||||
# by default
|
||||
|
||||
source "$TEST_TOP/common"
|
||||
|
||||
check_prereq btrfs
|
||||
|
||||
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
|
||||
"$TOP/btrfs" receive --dump
|
||||
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
|
||||
"$TOP/btrfs" receive --dump -E 1
|
||||
printf 'btrfs-stream\0\0\0\0\0' | run_mustfail "parsing invalid stream did not fail" \
|
||||
"$TOP/btrfs" receive --dump -E 10
|
Loading…
Reference in New Issue
Block a user