aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
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");