Fonts: the budget test starts after the first scan

This commit is contained in:
Dylan M. Taylor
2026-11-11 20:54:53 +00:00
parent f64438122f
commit 56142af888
+2
View File
@@ -196,6 +196,8 @@ mod alias_tests {
#[test]
fn the_file_search_for_uncovered_characters_stops_at_its_budget() {
let db = FontDb::with_font_dirs(vec![]);
// The first search scans the font folders, which starts the count again.
db.system_fallback('\u{E001}');
db.sys.lock().unwrap().file_searches = names::MAX_FILE_SEARCHES;
assert!(!db.system_fallback('\u{E000}'));
let sys = db.sys.lock().unwrap();