summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py')
-rw-r--r--lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py b/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
index ae9749617d5..eb7abc27653 100644
--- a/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
+++ b/lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
@@ -16,9 +16,12 @@ class SingleQuoteInCommandLineTestCase(TestBase):
@classmethod
def classCleanup(cls):
"""Cleanup the test byproducts."""
- os.remove("child_send.txt")
- os.remove("child_read.txt")
- os.remove(cls.myexe)
+ try:
+ os.remove("child_send.txt")
+ os.remove("child_read.txt")
+ os.remove(cls.myexe)
+ except:
+ pass
def test_lldb_invocation_with_single_quote_in_filename(self):
"""Test that 'lldb my_file_name' works where my_file_name is a string with a single quote char in it."""
OpenPOWER on IntegriCloud