Enable the portable PDF matching primitives in Windows builds

This commit is contained in:
gloamxun committed 2026-12-02 19:06:53 +08:00
1 parent 2b91828b45
commit cd891494e9
9 files changed
+6 -28

No files matched your search

@@ -1,8 +1,8 @@
#![cfg(all(target_os = "linux", target_env = "gnu"))]
#[cfg(all(target_os = "linux", target_env = "gnu"))]
use std::{fs, process::Command};
use texrra_tex_core::execution::*;
#[cfg(all(target_os = "linux", target_env = "gnu"))]
const SOURCE: &str = r#"
\catcode123=1 \catcode125=2 \catcode35=6 \catcode94=7
\def\probe#1{\message{!pdfmatch:#1:end!}}
@@ -42,6 +42,7 @@ fn file(source: &str) -> SourceFile {
}
}
#[cfg(all(target_os = "linux", target_env = "gnu"))]
#[test]
fn pdf_regex_matches_reference_bytes_and_retains_job_local_captures() {
let dir = std::env::temp_dir().join(format!("texrra-pdfmatch-{}", std::process::id()));