diff --git a/src/test/get_thread_list.py b/src/test/get_thread_list.py index ccae5cc4139..805056702e6 100644 --- a/src/test/get_thread_list.py +++ b/src/test/get_thread_list.py @@ -16,7 +16,7 @@ # on i386, we sometimes stop in the middle of nowhere 'i386': ['(0x[0-9a-f]+ in )?__kernel_vsyscall', '(0x[0-9a-f]+ in )?_traced_raw_syscall', - '0x[0-9a-f]+ in \?\?', + r'0x[0-9a-f]+ in \?\?', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?rr_page_start', '(0x[0-9a-f]+ in )?__lll_lock_wait', @@ -25,7 +25,7 @@ 'i386:x86-64': ['(0x[0-9a-f]+ in )?__lll_lock_wait', '(0x[0-9a-f]+ in )?pthread_barrier_wait', '(0x[0-9a-f]+ in )?futex_wait', - '0x0*70000002 in \?\?', + r'0x0*70000002 in \?\?', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?rr_page_start'], 'aarch64': ['(0x[0-9a-f]+ in )?syscall_traced', diff --git a/src/test/proc_maps.py b/src/test/proc_maps.py index 8826c8b07d0..ffcb63ef394 100644 --- a/src/test/proc_maps.py +++ b/src/test/proc_maps.py @@ -7,6 +7,6 @@ expect_gdb('Breakpoint 1') send_gdb('info proc mappings') -expect_gdb('\[vdso\]') +expect_gdb(r'\[vdso\]') ok() diff --git a/src/test/step_thread.py b/src/test/step_thread.py index 672c351d751..c8b69c01b40 100644 --- a/src/test/step_thread.py +++ b/src/test/step_thread.py @@ -15,7 +15,7 @@ bps = set(('A', 'B', 'C')) for bp in bps: send_gdb('b '+ bp +'') - expect_gdb('Breakpoint \d') + expect_gdb(r'Breakpoint \d') expect_gdb(r'\(rr\)') @@ -58,7 +58,7 @@ # on i386, we sometimes stop in the middle of nowhere 'i386': ['(0x[0-9a-f]+ in )?__kernel_vsyscall', '(0x[0-9a-f]+ in )?_traced_raw_syscall', - '0x[0-9a-f]+ in \?\?', + r'0x[0-9a-f]+ in \?\?', '(0x[0-9a-f]+ in )?rr_page_start', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?__lll_lock_wait', @@ -67,7 +67,7 @@ 'i386:x86-64': ['(0x[0-9a-f]+ in )?__lll_lock_wait', '(0x[0-9a-f]+ in )?pthread_barrier_wait', '(0x[0-9a-f]+ in )?futex_wait', - '0x0*70000002 in \?\?', + r'0x0*70000002 in \?\?', '(0x[0-9a-f]+ in )?syscall_traced', '(0x[0-9a-f]+ in )?rr_page_start' ], diff --git a/src/test/x86/fxregs.py b/src/test/x86/fxregs.py index 775d23c03b5..f6c3cbbb7fe 100644 --- a/src/test/x86/fxregs.py +++ b/src/test/x86/fxregs.py @@ -18,7 +18,7 @@ expect_gdb(' = %d'%(i + 10)) send_gdb('show architecture') -have_64 = 0 == expect_list([re.compile('i386:x86-64"?\)'), re.compile('i386"?\)')]) +have_64 = 0 == expect_list([re.compile(r'i386:x86-64"?\)'), re.compile(r'i386"?\)')]) if have_64: for i in range(8,16):