<p dir="ltr">Ok. I will take a look on it</p>
<p dir="ltr">Thanks, <br>
Ilia</p>
<div class="gmail_quote">On 11 Feb 2015 07:24, "Enrico Granata" <<a href="mailto:egranata@apple.com">egranata@apple.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div>The problem is that I ran the test case on my system before checking this in. So, it clearly worked on my system.</div><div><br></div><div>Is there any chance you could start debugging this and seeing where it fails? That may be a hint as to what is different between our setups.<br><br>Sent from my iPhone</div><div><br>On Feb 10, 2015, at 7:33 PM, Ilia K <<a href="mailto:ki.stfu@gmail.com" target="_blank">ki.stfu@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><p dir="ltr">Hello,</p>
<p dir="ltr">These tests don't work on OS X. See <a href="http://reviews.llvm.org/rL228659" target="_blank">http://reviews.llvm.org/rL228659</a>.</p>
<p dir="ltr">Thanks,<br>
Ilia</p>
<div class="gmail_quote">On 10 Feb 2015 06:17, "Enrico Granata" <<a href="mailto:egranata@apple.com" target="_blank">egranata@apple.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: enrico<br>
Date: Mon Feb 9 21:13:22 2015<br>
New Revision: 228659<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=228659&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=228659&view=rev</a><br>
Log:<br>
Add a test case for the launch via argdumper globbing mechanism<br>
<br>
Added:<br>
lldb/trunk/test/functionalities/launch_with_glob/<br>
lldb/trunk/test/functionalities/launch_with_glob/Makefile<br>
lldb/trunk/test/functionalities/launch_with_glob/TestLaunchWithGlob.py<br>
lldb/trunk/test/functionalities/launch_with_glob/file1.txt<br>
lldb/trunk/test/functionalities/launch_with_glob/file2.txt<br>
lldb/trunk/test/functionalities/launch_with_glob/file3.txt<br>
lldb/trunk/test/functionalities/launch_with_glob/file4.txy<br>
lldb/trunk/test/functionalities/launch_with_glob/file5.tyx<br>
lldb/trunk/test/functionalities/launch_with_glob/main.cpp<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/Makefile<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/Makefile?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/Makefile?rev=228659&view=auto</a><br>
==============================================================================<br>
--- lldb/trunk/test/functionalities/launch_with_glob/Makefile (added)<br>
+++ lldb/trunk/test/functionalities/launch_with_glob/Makefile Mon Feb 9 21:13:22 2015<br>
@@ -0,0 +1,5 @@<br>
+LEVEL = ../../make<br>
+<br>
+CXX_SOURCES := main.cpp<br>
+<br>
+include $(LEVEL)/Makefile.rules<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/TestLaunchWithGlob.py<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/TestLaunchWithGlob.py?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/TestLaunchWithGlob.py?rev=228659&view=auto</a><br>
==============================================================================<br>
--- lldb/trunk/test/functionalities/launch_with_glob/TestLaunchWithGlob.py (added)<br>
+++ lldb/trunk/test/functionalities/launch_with_glob/TestLaunchWithGlob.py Mon Feb 9 21:13:22 2015<br>
@@ -0,0 +1,70 @@<br>
+"""<br>
+Test that argdumper is a viable launching strategy.<br>
+"""<br>
+import commands<br>
+import lldb<br>
+import os<br>
+import time<br>
+import unittest2<br>
+from lldbtest import *<br>
+import lldbutil<br>
+<br>
+class LaunchWithGlobTestCase(TestBase):<br>
+<br>
+ mydir = TestBase.compute_mydir(__file__)<br>
+<br>
+<br>
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")<br>
+ @dsym_test<br>
+ def test_with_dsym (self):<br>
+ self.buildDsym()<br>
+ self.do_test ()<br>
+<br>
+<br>
+ @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")<br>
+ @dwarf_test<br>
+ def test_with_dwarf (self):<br>
+ self.buildDwarf()<br>
+ self.do_test ()<br>
+<br>
+ def do_test (self):<br>
+ exe = os.path.join (os.getcwd(), "a.out")<br>
+<br>
+ self.runCmd("target create %s" % exe)<br>
+<br>
+ # Create the target<br>
+ target = self.dbg.CreateTarget(exe)<br>
+<br>
+ # Create any breakpoints we need<br>
+ breakpoint = target.BreakpointCreateBySourceRegex ('break here', lldb.SBFileSpec ("main.cpp", False))<br>
+ self.assertTrue(breakpoint, VALID_BREAKPOINT)<br>
+<br>
+ self.runCmd("process launch -G true -w %s -- fi*.tx?" % (os.getcwd()))<br>
+<br>
+ process = self.process()<br>
+<br>
+ self.assertTrue(process.GetState() == lldb.eStateStopped,<br>
+ STOPPED_DUE_TO_BREAKPOINT)<br>
+<br>
+ thread = process.GetThreadAtIndex (0)<br>
+<br>
+ self.assertTrue (thread.IsValid(),<br>
+ "Process stopped at 'main' should have a valid thread");<br>
+<br>
+ stop_reason = thread.GetStopReason()<br>
+<br>
+ self.assertTrue (stop_reason == lldb.eStopReasonBreakpoint,<br>
+ "Thread in process stopped in 'main' should have a stop reason of eStopReasonBreakpoint");<br>
+<br>
+ self.expect("frame variable argv[1]", substrs=['file1.txt'])<br>
+ self.expect("frame variable argv[2]", substrs=['file2.txt'])<br>
+ self.expect("frame variable argv[3]", substrs=['file3.txt'])<br>
+ self.expect("frame variable argv[4]", substrs=['file4.txy'])<br>
+ self.expect("frame variable argv[5]", substrs=['file5.tyx'], matching=False)<br>
+<br>
+if __name__ == '__main__':<br>
+ import atexit<br>
+ lldb.SBDebugger.Initialize()<br>
+ atexit.register(lambda: lldb.SBDebugger.Terminate())<br>
+ unittest2.main()<br>
+<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/file1.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file1.txt?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file1.txt?rev=228659&view=auto</a><br>
==============================================================================<br>
(empty)<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/file2.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file2.txt?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file2.txt?rev=228659&view=auto</a><br>
==============================================================================<br>
(empty)<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/file3.txt<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file3.txt?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file3.txt?rev=228659&view=auto</a><br>
==============================================================================<br>
(empty)<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/file4.txy<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file4.txy?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file4.txy?rev=228659&view=auto</a><br>
==============================================================================<br>
(empty)<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/file5.tyx<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file5.tyx?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/file5.tyx?rev=228659&view=auto</a><br>
==============================================================================<br>
(empty)<br>
<br>
Added: lldb/trunk/test/functionalities/launch_with_glob/main.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/main.cpp?rev=228659&view=auto" target="_blank">http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/launch_with_glob/main.cpp?rev=228659&view=auto</a><br>
==============================================================================<br>
--- lldb/trunk/test/functionalities/launch_with_glob/main.cpp (added)<br>
+++ lldb/trunk/test/functionalities/launch_with_glob/main.cpp Mon Feb 9 21:13:22 2015<br>
@@ -0,0 +1,5 @@<br>
+int<br>
+main (int argc, char const **argv)<br>
+{<br>
+ return 0; // break here<br>
+}<br>
<br>
<br>
_______________________________________________<br>
lldb-commits mailing list<br>
<a href="mailto:lldb-commits@cs.uiuc.edu" target="_blank">lldb-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits</a><br>
</blockquote></div>
</div></blockquote></div></blockquote></div>