[Lldb-commits] [lldb] r116023 - /lldb/trunk/test/settings/TestSettings.py

Johnny Chen johnny.chen at apple.com
Thu Oct 7 17:47:31 PDT 2010


Author: johnny
Date: Thu Oct  7 19:47:30 2010
New Revision: 116023

URL: http://llvm.org/viewvc/llvm-project?rev=116023&view=rev
Log:
The expected term-width output string should be put within a list, not as a list of characters.
Also uncomment the cleanup of "stdout.txt" file as part of the class cleanup routine even though
test_set_output_path() is failing right now.

Modified:
    lldb/trunk/test/settings/TestSettings.py

Modified: lldb/trunk/test/settings/TestSettings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/settings/TestSettings.py?rev=116023&r1=116022&r2=116023&view=diff
==============================================================================
--- lldb/trunk/test/settings/TestSettings.py (original)
+++ lldb/trunk/test/settings/TestSettings.py Thu Oct  7 19:47:30 2010
@@ -13,8 +13,8 @@
 
     @classmethod
     def classCleanup(cls):
-        system(["/bin/sh", "-c", "rm output.txt"])
-        #system(["/bin/sh", "-c", "rm stdout.txt"])
+        system(["/bin/sh", "-c", "rm -f output.txt"])
+        system(["/bin/sh", "-c", "rm -f stdout.txt"])
 
     def test_set_prompt(self):
         """Test that 'set prompt' actually changes the prompt."""
@@ -45,7 +45,7 @@
 
         # The overall display should also reflect the new setting.
         self.expect("settings show",
-            substrs = "term-width (int) = '70'")
+            substrs = ["term-width (int) = '70'"])
 
     @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
     def test_with_dsym(self):





More information about the lldb-commits mailing list