<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bcm5719-llvm/lldb/packages/Python/lldbsuite/test/api, branch meklort-10.0.1</title>
<subtitle>Project Ortega BCM5719 LLVM</subtitle>
<id>https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1</id>
<link rel='self' href='https://git.raptorcs.com/git/bcm5719-llvm/atom?h=meklort-10.0.1'/>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/'/>
<updated>2019-12-26T15:49:35+00:00</updated>
<entry>
<title>[lldb][NFC] Simplify if-return</title>
<updated>2019-12-26T15:49:35+00:00</updated>
<author>
<name>Tatyana Krasnukha</name>
<email>tatyana@synopsys.com</email>
</author>
<published>2019-12-11T14:16:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=04359f48f02105d15ad1dd7e8d83801260794e18'/>
<id>urn:sha1:04359f48f02105d15ad1dd7e8d83801260794e18</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[lldb][NFC] Remove all `setUp` overrides that only call the parent implementation</title>
<updated>2019-12-13T11:34:49+00:00</updated>
<author>
<name>Raphael Isemann</name>
<email>teemperor@gmail.com</email>
</author>
<published>2019-12-13T11:24:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=9bace26a690a778ec0f09a9aae9537dfbdb6f42f'/>
<id>urn:sha1:9bace26a690a778ec0f09a9aae9537dfbdb6f42f</id>
<content type='text'>
Summary:
A lot of our tests copied the setUp code from our TestSampleTest.py:

```
    def setUp(self):
        # Call super's setUp().
        TestBase.setUp(self)
```

This code does nothing unless we actually do any setUp work in there, so let's remove all these method definitions.

Reviewers: labath, JDevlieghere

Reviewed By: labath

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71454
</content>
</entry>
<entry>
<title>[lldb][NFC] Remove 'from __future__ import print_function' from all tests that don't actually call 'print()'</title>
<updated>2019-12-13T11:23:04+00:00</updated>
<author>
<name>Raphael Isemann</name>
<email>teemperor@gmail.com</email>
</author>
<published>2019-12-13T11:11:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=a52a11139c0e3db9b00079aa1516080742b79475'/>
<id>urn:sha1:a52a11139c0e3db9b00079aa1516080742b79475</id>
<content type='text'>
Summary:
A lot of tests do this trick but the vast majority of them don't even call `print()`.

Most of this patch was generated by a script that just looks at all the files and deletes the line if there is no `print (` or `print(` anywhere else in the file.
I checked the remaining tests manually and deleted the import if we never call print (but instead do stuff like `expr print(...)` and similar false-positives).
I also corrected the additional empty lines after the import in the files that I manually edited.

Reviewers: JDevlieghere, labath, jfb

Reviewed By: labath

Subscribers: dexonsmith, wuzish, nemanjai, kbarton, christof, arphaman, abidh, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D71452
</content>
</entry>
<entry>
<title>[lldb] [testsuite] Mark TestSBCommandReturnObject as failing on Windows</title>
<updated>2019-10-04T20:49:44+00:00</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan.kratochvil@redhat.com</email>
</author>
<published>2019-10-04T20:49:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=4c7b8421856ee677b6a7ad4af844dcde647de960'/>
<id>urn:sha1:4c7b8421856ee677b6a7ad4af844dcde647de960</id>
<content type='text'>
Filed:
	testsuite: TestSBCommandReturnObject: object has no attribute 'dylibPath'
	https://bugs.llvm.org/show_bug.cgi?id=43570

http://lab.llvm.org:8011/builders/lldb-x64-windows-ninja/builds/9530/steps/test/logs/stdio

AttributeError: 'TestSBCommandReturnObject' object has no attribute 'dylibPath'

Fix crash on SBCommandReturnObject &amp; assignment
https://reviews.llvm.org/D67589
  env = {self.dylibPath: self.getLLDBLibraryEnvVal()}

I do not know how to link with liblldb on Windows so marking it as failing on
Windows.

llvm-svn: 373787
</content>
</entry>
<entry>
<title>[lldb] Fix crash on SBCommandReturnObject &amp; assignment</title>
<updated>2019-10-04T19:32:57+00:00</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan.kratochvil@redhat.com</email>
</author>
<published>2019-10-04T19:32:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=4112b4733502f746b766861853c414af0e01d6f9'/>
<id>urn:sha1:4112b4733502f746b766861853c414af0e01d6f9</id>
<content type='text'>
I was writing an SB API client and it was crashing on:
	bool DoExecute(SBDebugger dbg, char **command, SBCommandReturnObject &amp;result) {
	  result = subcommand(dbg, "help");

That is because SBCommandReturnObject &amp;result gets initialized inside LLDB by:
	bool DoExecute(Args &amp;command, CommandReturnObject &amp;result) override {
	  // std::unique_ptr gets initialized here from `&amp;result`!!!
	  SBCommandReturnObject sb_return(&amp;result);
	  DoExecute(...);
	  sb_return.Release();

Differential revision: https://reviews.llvm.org/D67589

llvm-svn: 373775
</content>
</entry>
<entry>
<title>Revert: [lldb] [testsuite] Remove redundant MAKE_DSYM := NO</title>
<updated>2019-09-27T18:52:34+00:00</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan.kratochvil@redhat.com</email>
</author>
<published>2019-09-27T18:52:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=dce7edf7e67ad0622b02b5c9cbffafe42b5df131'/>
<id>urn:sha1:dce7edf7e67ad0622b02b5c9cbffafe42b5df131</id>
<content type='text'>
    
Revert: llvm-svn: 373061

It broke OSX testsuite:
	https://reviews.llvm.org/D67589#1686150
	lldb/packages/Python/lldbsuite/test/macosx/function-starts/TestFunctionStarts.py

llvm-svn: 373110
</content>
</entry>
<entry>
<title>[lldb] [testsuite] Remove redundant MAKE_DSYM := NO</title>
<updated>2019-09-27T09:59:53+00:00</updated>
<author>
<name>Jan Kratochvil</name>
<email>jan.kratochvil@redhat.com</email>
</author>
<published>2019-09-27T09:59:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=32a4b27aa3c906e62c532d2372fa5e7db1c0c452'/>
<id>urn:sha1:32a4b27aa3c906e62c532d2372fa5e7db1c0c452</id>
<content type='text'>
According to a comment by Pavel Labath:
	https://reviews.llvm.org/D67589#inline-612375

llvm-svn: 373061
</content>
</entry>
<entry>
<title>Fir TestAPILog for gcc</title>
<updated>2019-09-18T13:41:50+00:00</updated>
<author>
<name>Pavel Labath</name>
<email>pavel@labath.sk</email>
</author>
<published>2019-09-18T13:41:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=89ad7f7a1ba245fccf1f64f95a146ada6f6aaac6'/>
<id>urn:sha1:89ad7f7a1ba245fccf1f64f95a146ada6f6aaac6</id>
<content type='text'>
different compilers will put different things into __PRETTY_FUNCTION__.
For instance gcc will not put a " " in the "const char *" argument,
causing our regex matching to fail.

This patch relaxes the regexes in this test to account for this
difference.

llvm-svn: 372224
</content>
</entry>
<entry>
<title>[test] Fail gracefully if the regex doesn't match</title>
<updated>2019-09-16T23:49:42+00:00</updated>
<author>
<name>Jonas Devlieghere</name>
<email>jonas@devlieghere.com</email>
</author>
<published>2019-09-16T23:49:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=71b32e4175d111e1d2a62bf681b5c49e92ff163a'/>
<id>urn:sha1:71b32e4175d111e1d2a62bf681b5c49e92ff163a</id>
<content type='text'>
This test is failing on the Fedora bot (staging). Rather than failing
with an IndexError, we should trigger an assert and dump the log when
the regex doesn't match.

llvm-svn: 372052
</content>
</entry>
<entry>
<title>[test] Update TestAPILog to pass on Windows.</title>
<updated>2019-09-13T22:14:59+00:00</updated>
<author>
<name>Jonas Devlieghere</name>
<email>jonas@devlieghere.com</email>
</author>
<published>2019-09-13T22:14:59+00:00</published>
<link rel='alternate' type='text/html' href='https://git.raptorcs.com/git/bcm5719-llvm/commit/?id=61dc038f8de01ce765387fa06d8cd5d9276cf62f'/>
<id>urn:sha1:61dc038f8de01ce765387fa06d8cd5d9276cf62f</id>
<content type='text'>
The pretty function macro is including __cdecl on Windows, which was
causing the pattern matching to fail. This should fix that.

llvm-svn: 371905
</content>
</entry>
</feed>
