Hi flackr, ovyalov,

lldb-server needs an explicit 'g' or 'p' argument now. Since lldb-server
is started as a gdbserver in this test, 'g' should be passed to it
explicitly.

http://reviews.llvm.org/D7801

Files:
  test/tools/lldb-gdbserver/commandline/TestStubSetSID.py

Index: test/tools/lldb-gdbserver/commandline/TestStubSetSID.py
===================================================================
--- test/tools/lldb-gdbserver/commandline/TestStubSetSID.py
+++ test/tools/lldb-gdbserver/commandline/TestStubSetSID.py
@@ -13,6 +13,14 @@
 import time
 from lldbtest import *
 
+
+def get_common_stub_args():
+    if 'linux' in sys.platform:
+        return ['g']
+    else:
+        return []
+
+
 class TestStubSetSIDTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
     def get_stub_sid(self, extra_stub_args=None):
         # Launch debugserver
@@ -34,11 +42,11 @@
         self.assertEquals(stub_sid, os.getsid(0))
 
     def sid_is_different_with_setsid(self):
-        stub_sid = self.get_stub_sid(" --setsid")
+        stub_sid = self.get_stub_sid(" %s --setsid" % ' 
'.join(get_common_stub_args()))
         self.assertNotEquals(stub_sid, os.getsid(0))
 
     def sid_is_different_with_S(self):
-        stub_sid = self.get_stub_sid(" -S")
+        stub_sid = self.get_stub_sid(" %s -S" % ' 
'.join(get_common_stub_args()))
         self.assertNotEquals(stub_sid, os.getsid(0))
 
     @debugserver_test

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
Index: test/tools/lldb-gdbserver/commandline/TestStubSetSID.py
===================================================================
--- test/tools/lldb-gdbserver/commandline/TestStubSetSID.py
+++ test/tools/lldb-gdbserver/commandline/TestStubSetSID.py
@@ -13,6 +13,14 @@
 import time
 from lldbtest import *
 
+
+def get_common_stub_args():
+    if 'linux' in sys.platform:
+        return ['g']
+    else:
+        return []
+
+
 class TestStubSetSIDTestCase(gdbremote_testcase.GdbRemoteTestCaseBase):
     def get_stub_sid(self, extra_stub_args=None):
         # Launch debugserver
@@ -34,11 +42,11 @@
         self.assertEquals(stub_sid, os.getsid(0))
 
     def sid_is_different_with_setsid(self):
-        stub_sid = self.get_stub_sid(" --setsid")
+        stub_sid = self.get_stub_sid(" %s --setsid" % ' '.join(get_common_stub_args()))
         self.assertNotEquals(stub_sid, os.getsid(0))
 
     def sid_is_different_with_S(self):
-        stub_sid = self.get_stub_sid(" -S")
+        stub_sid = self.get_stub_sid(" %s -S" % ' '.join(get_common_stub_args()))
         self.assertNotEquals(stub_sid, os.getsid(0))
 
     @debugserver_test
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits

Reply via email to