diff options
Diffstat (limited to 'packages/Python/lldbsuite/test/macosx/duplicate-archive-members')
5 files changed, 0 insertions, 122 deletions
diff --git a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/Makefile b/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/Makefile deleted file mode 100644 index 5bb3a3ce3f10..000000000000 --- a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/Makefile +++ /dev/null @@ -1,22 +0,0 @@ -LEVEL = ../../make - -C_SOURCES := main.c - -# Make an archive that has two object files with the same name, but -# different timestamps. Do it all in one rule so that the timestamps -# can be controlled without confusing Make. -libfoo.a: a.c sub1/a.c - $(CC) $(CFLAGS) -c $(<D)/a.c -o a.o - mkdir -p sub1 - $(CC) $(CFLAGS) -c $(<D)/sub1/a.c -o sub1/a.o - touch -t '198001010000.00' a.o - touch -t '198001010000.01' sub1/a.o - $(AR) $(ARFLAGS) $@ a.o sub1/a.o - rm a.o sub1/a.o - -include $(LEVEL)/Makefile.rules - -# Needs to come after include -OBJECTS += libfoo.a -$(EXE) : libfoo.a -.DEFAULT_GOAL := $(EXE) diff --git a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/TestDuplicateMembers.py b/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/TestDuplicateMembers.py deleted file mode 100644 index 1af2463fe7b8..000000000000 --- a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/TestDuplicateMembers.py +++ /dev/null @@ -1,55 +0,0 @@ -"""Test breaking inside functions defined within a BSD archive file libfoo.a.""" - -from __future__ import print_function - - -import os -import time -import lldb -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class BSDArchivesTestCase(TestBase): - - mydir = TestBase.compute_mydir(__file__) - - @expectedFailureAll( - oslist=["windows"], - bugnumber="llvm.org/pr24527. Makefile.rules doesn't know how to build static libs on Windows") - def test(self): - """Break inside a() and b() defined within libfoo.a.""" - self.build() - - exe = self.getBuildArtifact("a.out") - self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET) - - # Break on a() and b() symbols - lldbutil.run_break_set_by_symbol( - self, "a", sym_exact=True) - lldbutil.run_break_set_by_symbol( - self, "b", sym_exact=True) - - self.runCmd("run", RUN_SUCCEEDED) - - # The stop reason of the thread should be breakpoint. - self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, - substrs=['stopped', - 'stop reason = breakpoint']) - - # Break at a(int) first. - self.expect("frame variable", VARIABLES_DISPLAYED_CORRECTLY, - substrs=['(int) arg = 1']) - self.expect("frame variable __a_global", VARIABLES_DISPLAYED_CORRECTLY, - substrs=['(int) __a_global = 1']) - - # Continue the program, we should break at b(int) next. - self.runCmd("continue") - self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT, - substrs=['stopped', - 'stop reason = breakpoint']) - self.expect("frame variable", VARIABLES_DISPLAYED_CORRECTLY, - substrs=['(int) arg = 2']) - self.expect("frame variable __b_global", VARIABLES_DISPLAYED_CORRECTLY, - substrs=['(int) __b_global = 2']) diff --git a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/a.c b/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/a.c deleted file mode 100644 index 402a6270c9c7..000000000000 --- a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/a.c +++ /dev/null @@ -1,14 +0,0 @@ -//===-- a.c -----------------------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -int __a_global = 1; - -int a(int arg) { - int result = arg + __a_global; - return result; -} diff --git a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/main.c b/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/main.c deleted file mode 100644 index c5b1cc2f0d1c..000000000000 --- a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/main.c +++ /dev/null @@ -1,17 +0,0 @@ -//===-- main.c --------------------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -#include <stdio.h> - -extern int a(int); -extern int b(int); -int main (int argc, char const *argv[]) -{ - printf ("a(1) returns %d\n", a(1)); - printf ("b(2) returns %d\n", b(2)); -} diff --git a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/sub1/a.c b/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/sub1/a.c deleted file mode 100644 index 814d4e8b44e8..000000000000 --- a/packages/Python/lldbsuite/test/macosx/duplicate-archive-members/sub1/a.c +++ /dev/null @@ -1,14 +0,0 @@ -//===-- a.c -----------------------------------------------------*- C++ -*-===// -// -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. -// -//===----------------------------------------------------------------------===// -static int __b_global = 2; - -int b(int arg) { - int result = arg + __b_global; - return result; -} |
