Skip to content

Commit e3f3231

Browse files
committed
fix c++ cursor name for linux/macos
1 parent 4bce8a2 commit e3f3231

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/test_atomic_cursor.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,11 @@ def test_atomic_cursor_python_cpp_work_stealing_cursor_created_by_cpp():
559559

560560
actual_queue_name = q.get_shm_name()
561561

562-
from slick_queue_py.atomic_ops import validate_shm_name
563-
actual_cursor_name = validate_shm_name(cursor_name) # Created by C++ process
562+
# Get actual cursor name for C++ (with / prefix on POSIX)
563+
if sys.platform != 'win32':
564+
actual_cursor_name = '/' + cursor_name if not cursor_name.startswith('/') else cursor_name
565+
else:
566+
actual_cursor_name = cursor_name
564567

565568
# Start C++ consumer process
566569
cpp_consumer = find_cpp_executable("cpp_work_stealing_consumer")

0 commit comments

Comments
 (0)