mirror of
https://github.com/mhx/dwarfs.git
synced 2025-09-18 08:49:29 -04:00
test: cannot combine --input-list and --filter
This commit is contained in:
parent
04988e8a8a
commit
7fd51fb80c
@ -742,7 +742,7 @@ int mkdwarfs_main(int argc, sys_char** argv, iolayer const& iol) {
|
|||||||
|
|
||||||
if (vm.count("input-list")) {
|
if (vm.count("input-list")) {
|
||||||
if (vm.count("filter")) {
|
if (vm.count("filter")) {
|
||||||
iol.err << "error: cannot use --input-list and --filter\n";
|
iol.err << "error: cannot combine --input-list and --filter\n";
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -545,3 +545,10 @@ TEST(mkdwarfs_test, block_size_too_large) {
|
|||||||
EXPECT_NE(0, t.run({"-i", "/", "-o", "-", "-S", "100"}));
|
EXPECT_NE(0, t.run({"-i", "/", "-o", "-", "-S", "100"}));
|
||||||
EXPECT_THAT(t.err(), ::testing::HasSubstr("block size must be between"));
|
EXPECT_THAT(t.err(), ::testing::HasSubstr("block size must be between"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
TEST(mkdwarfs_test, cannot_combine_input_list_and_filter) {
|
||||||
|
auto t = mkdwarfs_tester::create_empty();
|
||||||
|
EXPECT_NE(0, t.run({"--input-list", "-", "-o", "-", "-F", "+ *"}));
|
||||||
|
EXPECT_THAT(t.err(),
|
||||||
|
::testing::HasSubstr("cannot combine --input-list and --filter"));
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user