summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/thread/TestNumThreads.py
diff options
context:
space:
mode:
authorOleksiy Vyalov <ovyalov@google.com>2015-05-15 02:05:10 +0000
committerOleksiy Vyalov <ovyalov@google.com>2015-05-15 02:05:10 +0000
commit9953f0886bd37abc37622857c530deec29f097aa (patch)
tree7575070d8eec20e07abc974b9e866c55c162519a /lldb/test/functionalities/thread/TestNumThreads.py
parent2c2661456e3c89c2b2287c050515be3f5b906c87 (diff)
downloadbcm5719-llvm-9953f0886bd37abc37622857c530deec29f097aa.tar.gz
bcm5719-llvm-9953f0886bd37abc37622857c530deec29f097aa.zip
Reverting r237392 since it broke TestNumThreads on ubuntu builder.
llvm-svn: 237415
Diffstat (limited to 'lldb/test/functionalities/thread/TestNumThreads.py')
-rw-r--r--lldb/test/functionalities/thread/TestNumThreads.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/test/functionalities/thread/TestNumThreads.py b/lldb/test/functionalities/thread/TestNumThreads.py
index 824956be8d4..d2156399d61 100644
--- a/lldb/test/functionalities/thread/TestNumThreads.py
+++ b/lldb/test/functionalities/thread/TestNumThreads.py
@@ -29,7 +29,7 @@ class NumberOfThreadsTestCase(TestBase):
# Call super's setUp().
TestBase.setUp(self)
# Find the line number to break inside main().
- self.line = line_number('main.cpp', '// Set break point at this line.')
+ self.line = line_number('main.c', '// Set break point at this line.')
def number_of_threads_test(self):
"""Test number of threads."""
@@ -37,11 +37,11 @@ class NumberOfThreadsTestCase(TestBase):
self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
# This should create a breakpoint with 1 location.
- lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1)
+ lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1)
# The breakpoint list should show 3 locations.
self.expect("breakpoint list -f", "Breakpoint location shown correctly",
- substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.line])
+ substrs = ["1: file = 'main.c', line = %d, locations = 1" % self.line])
# Run the program.
self.runCmd("run", RUN_SUCCEEDED)
@@ -57,9 +57,7 @@ class NumberOfThreadsTestCase(TestBase):
# Get the number of threads
num_threads = process.GetNumThreads()
- # Using std::thread may involve extra threads, so we assert that there are
- # at least 4 rather than exactly 4.
- self.assertTrue(num_threads >= 4, 'Number of expected threads and actual threads do not match.')
+ self.assertTrue(num_threads == 4, 'Number of expected threads and actual threads do not match.')
if __name__ == '__main__':
import atexit
OpenPOWER on IntegriCloud