From e6fbce675d99982dab2e00eab390359e306d00a8 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Thu, 7 May 2020 11:53:57 -0700 Subject: [PATCH] [lldb/Test] Fix typo in find-and-replace. --- .../python_api/file_handle/TestFileHandle.py | 98 +++++++++---------- 1 file changed, 49 insertions(+), 49 deletions(-) diff --git a/lldb/test/API/python_api/file_handle/TestFileHandle.py b/lldb/test/API/python_api/file_handle/TestFileHandle.py index 98e8847467a02..bbcb1124b74a3 100644 --- a/lldb/test/API/python_api/file_handle/TestFileHandle.py +++ b/lldb/test/API/python_api/file_handle/TestFileHandle.py @@ -120,7 +120,7 @@ def handleCmd(self, cmd, check=True, collect_result=True): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_legacy_file_out_script(self): with open(self.out_filename, 'w') as f: self.dbg.SetOutputFileHandle(f, False) @@ -136,7 +136,7 @@ def test_legacy_file_out_script(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_legacy_file_out(self): with open(self.out_filename, 'w') as f: self.dbg.SetOutputFileHandle(f, False) @@ -145,7 +145,7 @@ def test_legacy_file_out(self): self.assertIn('deadbeef', f.read()) @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_legacy_file_err_with_get(self): with open(self.out_filename, 'w') as f: self.dbg.SetErrorFileHandle(f, False) @@ -160,7 +160,7 @@ def test_legacy_file_err_with_get(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_legacy_file_err(self): with open(self.out_filename, 'w') as f: self.dbg.SetErrorFileHandle(f, False) @@ -170,7 +170,7 @@ def test_legacy_file_err(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_legacy_file_error(self): with open(self.out_filename, 'w') as f: self.dbg.SetErrorFileHandle(f, False) @@ -180,7 +180,7 @@ def test_legacy_file_error(self): self.assertTrue(re.search(r'error:.*lolwut', errors)) @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_type_errors(self): sbf = lldb.SBFile() self.assertRaises(Exception, sbf.Write, None) @@ -191,7 +191,7 @@ def test_sbfile_type_errors(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write_fileno(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile(f.fileno(), "w", False) @@ -206,7 +206,7 @@ def test_sbfile_write_fileno(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile(f) @@ -220,7 +220,7 @@ def test_sbfile_write(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_read_fileno(self): with open(self.out_filename, 'w') as f: f.write('FOO') @@ -234,7 +234,7 @@ def test_sbfile_read_fileno(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_read(self): with open(self.out_filename, 'w') as f: f.write('foo') @@ -250,7 +250,7 @@ def test_sbfile_read(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_fileno_out(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile(f.fileno(), "w", False) @@ -265,7 +265,7 @@ def test_fileno_out(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_fileno_help(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile(f.fileno(), "w", False) @@ -277,7 +277,7 @@ def test_fileno_help(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_help(self): with open(self.out_filename, 'w') as f: status = self.dbg.SetOutputFile(lldb.SBFile(f)) @@ -288,7 +288,7 @@ def test_help(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_immediate(self): with open(self.out_filename, 'w') as f: ret = lldb.SBCommandReturnObject() @@ -306,7 +306,7 @@ def test_immediate(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_immediate_string(self): f = io.StringIO() ret = lldb.SBCommandReturnObject() @@ -323,7 +323,7 @@ def test_immediate_string(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_immediate_sbfile_string(self): f = io.StringIO() ret = lldb.SBCommandReturnObject() @@ -338,7 +338,7 @@ def test_immediate_sbfile_string(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_fileno_inout(self): with open(self.in_filename, 'w') as f: f.write("help help\n") @@ -362,7 +362,7 @@ def test_fileno_inout(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_inout(self): with open(self.in_filename, 'w') as f: f.write("help help\n") @@ -381,7 +381,7 @@ def test_inout(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_binary_inout(self): with open(self.in_filename, 'w') as f: f.write("help help\n") @@ -401,7 +401,7 @@ def test_binary_inout(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_string_inout(self): inf = io.StringIO("help help\np/x ~0\n") outf = io.StringIO() @@ -419,7 +419,7 @@ def test_string_inout(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_bytes_inout(self): inf = io.BytesIO(b"help help\nhelp b\n") outf = io.BytesIO() @@ -436,7 +436,7 @@ def test_bytes_inout(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_fileno_error(self): with open(self.out_filename, 'w') as f: @@ -455,7 +455,7 @@ def test_fileno_error(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_replace_stdout(self): f = io.StringIO() with replace_stdout(f): @@ -466,7 +466,7 @@ def test_replace_stdout(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_replace_stdout_with_nonfile(self): f = io.StringIO() with replace_stdout(f): @@ -482,7 +482,7 @@ class Nothing(): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write_borrowed(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile.Create(f, borrow=True) @@ -499,7 +499,7 @@ def test_sbfile_write_borrowed(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write_forced(self): with open(self.out_filename, 'w') as f: written = MutableBool(False) @@ -521,7 +521,7 @@ def mywrite(x): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write_forced_borrowed(self): with open(self.out_filename, 'w') as f: written = MutableBool(False) @@ -543,7 +543,7 @@ def mywrite(x): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write_string(self): f = io.StringIO() sbf = lldb.SBFile(f) @@ -557,7 +557,7 @@ def test_sbfile_write_string(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_string_out(self): f = io.StringIO() status = self.dbg.SetOutputFile(f) @@ -568,7 +568,7 @@ def test_string_out(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_string_error(self): f = io.StringIO() status = self.dbg.SetErrorFile(f) @@ -580,7 +580,7 @@ def test_string_error(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_write_bytes(self): f = io.BytesIO() sbf = lldb.SBFile(f) @@ -593,7 +593,7 @@ def test_sbfile_write_bytes(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_read_string(self): f = io.StringIO('zork') sbf = lldb.SBFile(f) @@ -605,7 +605,7 @@ def test_sbfile_read_string(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_read_string_one_byte(self): f = io.StringIO('z') sbf = lldb.SBFile(f) @@ -618,7 +618,7 @@ def test_sbfile_read_string_one_byte(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_read_bytes(self): f = io.BytesIO(b'zork') sbf = lldb.SBFile(f) @@ -630,7 +630,7 @@ def test_sbfile_read_bytes(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_out(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile(f) @@ -643,7 +643,7 @@ def test_sbfile_out(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_file_out(self): with open(self.out_filename, 'w') as f: status = self.dbg.SetOutputFile(f) @@ -654,7 +654,7 @@ def test_file_out(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbfile_error(self): with open(self.out_filename, 'w') as f: sbf = lldb.SBFile(f) @@ -667,7 +667,7 @@ def test_sbfile_error(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_file_error(self): with open(self.out_filename, 'w') as f: status = self.dbg.SetErrorFile(f) @@ -679,7 +679,7 @@ def test_file_error(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_exceptions(self): self.assertRaises(Exception, lldb.SBFile, None) self.assertRaises(Exception, lldb.SBFile, "ham sandwich") @@ -699,7 +699,7 @@ def test_exceptions(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_exceptions_logged(self): messages = list() self.dbg.SetLoggingCallback(messages.append) @@ -711,7 +711,7 @@ def test_exceptions_logged(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_flush(self): flushed = MutableBool(False) closed = MutableBool(False) @@ -741,7 +741,7 @@ def test_flush(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_fileno_flush(self): with open(self.out_filename, 'w') as f: f.write("foo") @@ -763,7 +763,7 @@ def test_fileno_flush(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_close(self): with open(self.out_filename, 'w') as f: status = self.dbg.SetOutputFile(f) @@ -783,7 +783,7 @@ def test_close(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_stdout(self): f = io.StringIO() status = self.dbg.SetOutputFile(f) @@ -793,7 +793,7 @@ def test_stdout(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_stdout_file(self): with open(self.out_filename, 'w') as f: status = self.dbg.SetOutputFile(f) @@ -810,7 +810,7 @@ def test_stdout_file(self): @add_test_categories(['pyapi']) @skipIf(py_version=['<', (3,)]) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_identity(self): f = io.StringIO() @@ -866,7 +866,7 @@ def test_identity(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_back_and_forth(self): with open(self.out_filename, 'w') as f: # at each step here we're borrowing the file, so we have to keep @@ -886,7 +886,7 @@ def i(sbf): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_set_filehandle_none(self): self.assertRaises(Exception, self.dbg.SetOutputFile, None) self.assertRaises(Exception, self.dbg.SetOutputFile, "ham sandwich") @@ -925,7 +925,7 @@ def test_set_filehandle_none(self): @add_test_categories(['pyapi']) - @@skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. + @skipIfReproducer # lldb::FileSP used in typemap cannot be instrumented. def test_sbstream(self): with open(self.out_filename, 'w') as f: