<commit_before>"""Test breaking inside functions defined within a BSD archive file libfoo.a."""

import os, time
import unittest2
import lldb
from lldbtest import *
import lldbutil

class BSDArchivesTestCase(TestBase):

    mydir = TestBase.compute_mydir(__file__)

    def test_with_dwarf(self):
        """Break inside a() and b() defined within libfoo.a."""
        self.buildDwarf()
        self.break_inside_bsd_archives()

    def setUp(self):
        # Call super's setUp().
        TestBase.setUp(self)
        # Find the line number in a(int) to break at.
        self.line = line_number('a.c', '// Set file and line breakpoint inside a().')

    def break_inside_bsd_archives(self):
        """Break inside a() and b() defined within libfoo.a."""
        exe = os.path.join(os.getcwd(), "a.out")
        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)

        # Break inside a() by file and line first.<commit_msg>XFAIL TestBSDArchives.py on Windows<commit_after>"""Test breaking inside functions defined within a BSD archive file libfoo.a."""

import os, time
import unittest2
import lldb
from lldbtest import *
import lldbutil

class BSDArchivesTestCase(TestBase):

    mydir = TestBase.compute_mydir(__file__)

    @expectedFailureHostWindows("llvm.org/pr24527") # Makefile.rules doesn't know how to build static libs on Windows.
    def test_with_dwarf(self):
        """Break inside a() and b() defined within libfoo.a."""
        self.buildDwarf()
        self.break_inside_bsd_archives()

    def setUp(self):
        # Call super's setUp().
        TestBase.setUp(self)
        # Find the line number in a(int) to break at.
        self.line = line_number('a.c', '// Set file and line breakpoint inside a().')

    def break_inside_bsd_archives(self):
        """Break inside a() and b() defined within libfoo.a."""
        exe = os.path.join(os.getcwd(), "a.out")
        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)

        # Break inside a() by file and line first.
{'fraction_non_alphanumeric': 0.11517275913870806, 'fraction_numerical': 0.0035052578868302454, 'mean_word_length': 3.1195876288659794, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5318458', 'n_tokens_mistral': 643, 'n_tokens_neox': 613, 'n_words': 187}