Discard duplicate destinations during native PDF execution
This commit is contained in:
1 parent
ba548ef05d
commit
0e71c15b01
9 files changed
+152
-7
No files matched your search
@@ -365,7 +365,7 @@ fn local_structure_action_references_the_shipped_structure_and_later_page() {
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn each_export_warning_starts_on_its_own_log_line() {
|
||||
fn each_duplicate_destination_warning_starts_on_its_own_log_line() {
|
||||
let root = std::env::temp_dir().join(format!("texrra-pdf-warning-lines-{}", std::process::id()));
|
||||
let source = r"\catcode123=1 \catcode125=2
|
||||
\pdfoutput=1 \pdfmajorversion=2 \pdfminorversion=0
|
||||
@@ -384,7 +384,7 @@ fn each_export_warning_starts_on_its_own_log_line() {
|
||||
let transcript = fs::read_to_string(root.join("native/probe.log")).unwrap();
|
||||
let descriptions: Vec<_> = transcript
|
||||
.lines()
|
||||
.filter_map(|line| line.strip_prefix("native PDF warning: "))
|
||||
.filter_map(|line| line.strip_prefix("pdfTeX warning (ext4): "))
|
||||
.collect();
|
||||
assert_eq!(descriptions.len(), 2, "{transcript}");
|
||||
for (description, target) in descriptions.iter().zip(["first", "second"]) {
|
||||
|
||||
Reference in new issue
Block a user