[core] Parsers: strict VDF, Steam, Epic, GOG, manual and Domi sources, WinPath, GameId, Launch URIs, merge
This commit is contained in:
@@ -156,7 +156,7 @@ fn app_manifest_refuses_blank_or_control_title() {
|
||||
|
||||
#[test]
|
||||
fn app_manifest_refuses_device_name_installdir() {
|
||||
for bad in ["CON", "nul", "COM1", "lpt9.txt", "a/b", "a\\b", ".", "..", "x:", "dots.", ""] {
|
||||
for bad in ["CON", "nul", "COM1", "lpt9.txt", "a/b", r"a\\b", ".", "..", "x:", "dots.", ""] {
|
||||
let acf = format!("\"AppState\" {{ \"appid\" \"10\" \"name\" \"N\" \"installdir\" \"{bad}\" }}");
|
||||
assert_eq!(steam::app_manifest(acf.as_bytes(), &lib()), Err(ParseError::BadPath("installdir")), "{bad:?}");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user