summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2012-06-19 20:29:50 +0000
committerJohnny Chen <johnny.chen@apple.com>2012-06-19 20:29:50 +0000
commit59ceee7933da1832a270f08843fe67c7b57ea000 (patch)
tree1a988ea17260ea628246174b8d85a6ac43025f8c
parent00c31c888ba32f0de132cbf27a5158cbec3730a7 (diff)
downloadbcm5719-llvm-59ceee7933da1832a270f08843fe67c7b57ea000.tar.gz
bcm5719-llvm-59ceee7933da1832a270f08843fe67c7b57ea000.zip
Test suite cleanup: use Python API to remove files as part of cleanup instead of running OS commands.
llvm-svn: 158737
-rw-r--r--lldb/test/functionalities/completion/TestCompletion.py4
-rw-r--r--lldb/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py6
2 files changed, 5 insertions, 5 deletions
diff --git a/lldb/test/functionalities/completion/TestCompletion.py b/lldb/test/functionalities/completion/TestCompletion.py
index c034e633236..8a5962cab9c 100644
--- a/lldb/test/functionalities/completion/TestCompletion.py
+++ b/lldb/test/functionalities/completion/TestCompletion.py
@@ -15,8 +15,8 @@ class CommandLineCompletionTestCase(TestBase):
@classmethod
def classCleanup(cls):
"""Cleanup the test byproducts."""
- system(["/bin/sh", "-c", "rm -f child_send.txt"])
- system(["/bin/sh", "-c", "rm -f child_read.txt"])
+ os.remove("child_send.txt")
+ os.remove("child_read.txt")
def test_process_attach_dash_dash_con(self):
"""Test that 'process attach --con' completes to 'process attach --continue '."""
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 65eec4cd600..ae9749617d5 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,9 @@ class SingleQuoteInCommandLineTestCase(TestBase):
@classmethod
def classCleanup(cls):
"""Cleanup the test byproducts."""
- system(["/bin/sh", "-c", "rm -f child_send.txt"])
- system(["/bin/sh", "-c", "rm -f child_read.txt"])
- system(["/bin/sh", "-c", "rm -f \"%s\"" % cls.myexe])
+ os.remove("child_send.txt")
+ os.remove("child_read.txt")
+ os.remove(cls.myexe)
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