[lldb] More memory allocation test fixes
authorPavel Labath <pavel@labath.sk>
Wed, 14 Oct 2020 18:41:57 +0000 (20:41 +0200)
committerPavel Labath <pavel@labath.sk>
Wed, 14 Oct 2020 18:43:47 +0000 (20:43 +0200)
XFAIL nodefaultlib.cpp on darwin - the test does not pass there

XFAIL TestGdbRemoteMemoryAllocation on windows - memory is allocated
with incorrect permissions

lldb/test/API/tools/lldb-server/memory-allocation/TestGdbRemoteMemoryAllocation.py
lldb/test/Shell/Expr/nodefaultlib.cpp

index 5c8e462..954eb23 100644 (file)
@@ -46,6 +46,7 @@ class TestGdbRemoteMemoryAllocation(gdbremote_testcase.GdbRemoteTestCaseBase):
 
     @skipIf(oslist=no_match(supported_oses))
     @skipIf(oslist=["linux"], archs=no_match(supported_linux_archs))
+    @expectedFailureAll(oslist=["windows"]) # Memory allocated with incorrect permissions
     @llgs_test
     def test_supported(self):
         """Make sure (de)allocation works on platforms where it's supposed to
@@ -61,6 +62,7 @@ class TestGdbRemoteMemoryAllocation(gdbremote_testcase.GdbRemoteTestCaseBase):
         self.allocate(0x1100, "rwx")
 
     @skipIf(oslist=["linux"], archs=supported_linux_archs)
+    @skipIf(oslist=supported_oses)
     @llgs_test
     def test_unsupported(self):
         """Make sure we get an "unsupported" error on platforms where the
index 1bd1b63..5c4f19d 100644 (file)
@@ -3,12 +3,13 @@
 
 // REQUIRES: native
 // XFAIL: system-linux && !(target-x86 || target-x86_64)
-// XFAIL: system-netbsd || system-freebsd
+// XFAIL: system-netbsd || system-freebsd || system-darwin
 
 // RUN: %build %s --nodefaultlib -o %t
 // RUN: %lldb %t -o "b main" -o run -o "p call_me(5, 6)" -o exit \
 // RUN:   | FileCheck %s
 
+// CHECK: p call_me(5, 6)
 // CHECK: (int) $0 = 30
 
 int call_me(int x, long y) { return x * y; }