Skip to content

Commit 995b6ab

Browse files
committed
tests/executable.rs: bad -X position
1 parent 7437aff commit 995b6ab

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

tests/executable.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,3 +883,18 @@ fn extra_search_paths() {
883883
);
884884
error_or_panic(&output);
885885
}
886+
887+
/// -X in non-initial position fails
888+
#[test]
889+
fn bad_v2_position() {
890+
let output = run_tectonic(&PathBuf::from("."), &["-", "-X"]);
891+
error_or_panic(&output);
892+
}
893+
894+
#[cfg(feature = "serialization")]
895+
#[test]
896+
fn bad_v2_position_build() {
897+
let (_tempdir, temppath) = setup_v2();
898+
let output = run_tectonic(&temppath, &["build", "-X"]);
899+
error_or_panic(&output);
900+
}

0 commit comments

Comments
 (0)