Skip to content

Commit 8453bfa

Browse files
cursoragentlovasoa
andcommitted
Fix: Normalize SQLite test paths to use forward slashes
Co-authored-by: contact <[email protected]>
1 parent afe4a43 commit 8453bfa

File tree

1 file changed

+4
-2
lines changed
  • sqlx-core/src/sqlite/testing

1 file changed

+4
-2
lines changed

sqlx-core/src/sqlite/testing/mod.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ fn convert_path(test_path: &str) -> String {
6868

6969
path.set_extension("sqlite");
7070

71-
path.into_os_string()
71+
let s = path
72+
.into_os_string()
7273
.into_string()
73-
.expect("path should be UTF-8")
74+
.expect("path should be UTF-8");
75+
s.replace('\\', '/')
7476
}
7577

7678
#[test]

0 commit comments

Comments
 (0)