aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2022-08-19 12:13:04 +0200
committerJakub Konka <kubkon@jakubkonka.com>2022-11-10 14:03:11 +0100
commit1357790ec969bb6ee19ade6e8a348bd9d7cbbc4d (patch)
tree193781a8f3722b2459e8c3db0d9645961ec10be6 /test/tests.zig
parentdd8df1caf33291c2deddf684354c3dd80c402b45 (diff)
downloadzig-1357790ec969bb6ee19ade6e8a348bd9d7cbbc4d.tar.gz
zig-1357790ec969bb6ee19ade6e8a348bd9d7cbbc4d.zip
win: combine PDB fixes into one changeset
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 1d47fcddc5..26eee873bf 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -960,7 +960,7 @@ pub const StackTracesContext = struct {
pos = marks[i] + delim.len;
}
// locate source basename
- pos = mem.lastIndexOfAny(u8, line[0..marks[0]], "\\/") orelse {
+ pos = mem.lastIndexOfScalar(u8, line[0..marks[0]], fs.path.sep) orelse {
// unexpected pattern: emit raw line and cont
try buf.appendSlice(line);
try buf.appendSlice("\n");