WebKit Bugzilla
Attachment 341854 Details for
Bug 186240
: REGRESSION(r232421): Breaks webkitpy tests (Requested by aakashjain on #webkit).
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
ROLLOUT of r232421
bug-186240-20180602184425.patch (text/plain), 40.71 KB, created by
WebKit Commit Bot
on 2018-06-02 15:44:26 PDT
(
hide
)
Description:
ROLLOUT of r232421
Filename:
MIME Type:
Creator:
WebKit Commit Bot
Created:
2018-06-02 15:44:26 PDT
Size:
40.71 KB
patch
obsolete
>Subversion Revision: 232444 >diff --git a/Tools/ChangeLog b/Tools/ChangeLog >index a9b489e1928ed268c0c2a174f8998ecd35492fe8..d848dc82764c0572d7c0be64e8312b20f1748ab0 100644 >--- a/Tools/ChangeLog >+++ b/Tools/ChangeLog >@@ -1,3 +1,16 @@ >+2018-06-02 Commit Queue <commit-queue@webkit.org> >+ >+ Unreviewed, rolling out r232421. >+ https://bugs.webkit.org/show_bug.cgi?id=186240 >+ >+ Breaks webkitpy tests (Requested by aakashjain on #webkit). >+ >+ Reverted changeset: >+ >+ "Add some tests for lldb_webkit.py" >+ https://bugs.webkit.org/show_bug.cgi?id=183744 >+ https://trac.webkit.org/changeset/232421 >+ > 2018-06-01 Daniel Bates <dabates@apple.com> > > Add some tests for lldb_webkit.py >diff --git a/Tools/Makefile b/Tools/Makefile >index ca07f1881bc91fe8e522d66e3df7b81f7580f44c..6a1f77ce63573e5fe891034768253730045b9243 100644 >--- a/Tools/Makefile >+++ b/Tools/Makefile >@@ -2,7 +2,7 @@ MODULES = DumpRenderTree WebKitTestRunner MiniBrowser ../Source/ThirdParty/gtest > > ifneq (,$(SDKROOT)) > ifeq (,$(findstring macosx,$(SDKROOT))) >- MODULES = DumpRenderTree WebKitTestRunner ../Source/ThirdParty/gtest/xcode TestWebKitAPI lldb/lldbWebKitTester >+ MODULES = DumpRenderTree WebKitTestRunner ../Source/ThirdParty/gtest/xcode TestWebKitAPI > endif > ifneq (,$(findstring iphone,$(SDKROOT))) > MODULES += MobileMiniBrowser >diff --git a/Tools/Scripts/build-lldbwebkittester b/Tools/Scripts/build-lldbwebkittester >deleted file mode 100755 >index 79d9c6a6ec9500eb020e262707d2a315a58d165e..0000000000000000000000000000000000000000 >--- a/Tools/Scripts/build-lldbwebkittester >+++ /dev/null >@@ -1,76 +0,0 @@ >-#!/usr/bin/env perl >- >-# Copyright (C) 2014-2018 Apple Inc. All rights reserved. >-# >-# Redistribution and use in source and binary forms, with or without >-# modification, are permitted provided that the following conditions >-# are met: >-# >-# 1. Redistributions of source code must retain the above copyright >-# notice, this list of conditions and the following disclaimer. >-# 2. Redistributions in binary form must reproduce the above copyright >-# notice, this list of conditions and the following disclaimer in the >-# documentation and/or other materials provided with the distribution. >-# 3. Neither the name of Apple Inc. ("Apple") nor the names of >-# its contributors may be used to endorse or promote products derived >-# from this software without specific prior written permission. >-# >-# THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY >-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED >-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE >-# DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY >-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES >-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; >-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND >-# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF >-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >- >-use strict; >-use warnings; >-use File::Basename; >-use FindBin; >-use Getopt::Long qw(:config pass_through); >-use lib $FindBin::Bin; >-use webkitdirs; >- >-sub buildProjectOrDie($$); >- >-my $showHelp; >-my $clean = 0; >- >-my $programName = basename($0); >-my $usage = <<EOF; >-Usage: $programName [options] [options to pass to build system] >- --help Show this help message >- --clean Clean up the build directory >-EOF >- >-my $result = GetOptions( >- "help" => \$showHelp, >- "clean" => \$clean, >-); >- >-if ($showHelp || !$result) { >- print STDERR $usage; >- exit 1; >-} >- >-checkRequiredSystemConfig(); >-setConfiguration(); >-chdirWebKit(); >- >-my @xcodeOptions = XcodeOptions(); >- >-buildProjectOrDie("Source/bmalloc", "bmalloc"); >-buildProjectOrDie("Source/WTF", "WTF"); >-buildProjectOrDie("Tools/lldb/lldbWebKitTester", "lldbWebKitTester"); >- >-sub buildProjectOrDie($$) >-{ >- my ($path, $project) = @_; >- chdir($path) or die; >- $result = exitStatus(buildXCodeProject($project, $clean, @xcodeOptions, @ARGV)); >- exit $result if $result; >- chdirWebKit(); >-} >diff --git a/Tools/Scripts/dump-class-layout b/Tools/Scripts/dump-class-layout >index 6f6eba42de8175362b2c21977916d874b5504cd5..d41864455836e3b0e2b06546b9bab62668586ec5 100755 >--- a/Tools/Scripts/dump-class-layout >+++ b/Tools/Scripts/dump-class-layout >@@ -31,9 +31,6 @@ import os > import subprocess > from sets import Set > >-from webkitpy.common.system.systemhost import SystemHost >-sys.path.append(SystemHost().path_to_lldb_python_directory()) >-import lldb > > framework = "WebCore" > build_directory = "" >@@ -44,6 +41,21 @@ def webkit_build_dir(): > scriptpath = os.path.dirname(os.path.realpath(__file__)) > return subprocess.check_output([os.path.join(scriptpath, "webkit-build-directory"), "--top-level"]).strip() > >+def developer_dir(): >+ return subprocess.check_output(["xcode-select", "--print-path"]) >+ >+def import_lldb(): >+ xcode_contents_path = os.path.split(developer_dir())[0] >+ lldb_framework_path = os.path.join(xcode_contents_path, "SharedFrameworks", "LLDB.framework", "Resources", "Python") >+ sys.path.append(lldb_framework_path) >+ >+ LLDB_MODULE_NAME = "lldb" >+ try: >+ globals()[LLDB_MODULE_NAME] = __import__(LLDB_MODULE_NAME) >+ except ImportError: >+ print "Failed to import {} from {}".format(LLDB_MODULE_NAME, lldb_framework_path) >+ sys.exit(1) >+ > def verify_type(target, type): > typename = type.GetName() > seenOffset = Set() >@@ -184,6 +196,7 @@ def main(): > build_dir = args.build_directory > > target_path = os.path.join(build_dir, args.config, args.framework + ".framework", args.framework); >+ import_lldb() > dump_class(target_path, args.classname, args.arch) > > if __name__ == "__main__": >diff --git a/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py b/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py >index 22eb7ce4a458cf072be7d301df25472884e83bbc..8921ca982864b741949b2664598810e7eb43300f 100644 >--- a/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py >+++ b/Tools/Scripts/webkitpy/common/checkout/scm/scm_unittest.py >@@ -60,8 +60,7 @@ from .svn import SVN > > # We cache the mock SVN repo so that we don't create it again for each call to an SVNTest or GitTest test_ method. > # We store it in a global variable so that we can delete this cached repo on exit(3). >-# FIXME: Remove this once test-webkitpy supports class and module fixtures (i.e. setUpClass()/setUpModule() >-# are called exactly once per class/module). >+# FIXME: Remove this once we migrate to Python 2.7. Unittest in Python 2.7 supports module-specific setup and teardown functions. > cached_svn_repo_path = None > > >@@ -71,8 +70,7 @@ def remove_dir(path): > shutil.rmtree(path) > > >-# FIXME: Remove this once test-webkitpy supports class and module fixtures (i.e. setUpClass()/setUpModule() >-# are called exactly once per class/module). >+# FIXME: Remove this once we migrate to Python 2.7. Unittest in Python 2.7 supports module-specific setup and teardown functions. > @atexit.register > def delete_cached_mock_repo_at_exit(): > if cached_svn_repo_path: >diff --git a/Tools/Scripts/webkitpy/common/system/systemhost.py b/Tools/Scripts/webkitpy/common/system/systemhost.py >index 1ca2928449824c2f0fc1f30cae5ee121a834b3d9..a15342201d833414731ebd0f76f7179a6f0bd6e3 100644 >--- a/Tools/Scripts/webkitpy/common/system/systemhost.py >+++ b/Tools/Scripts/webkitpy/common/system/systemhost.py >@@ -47,8 +47,3 @@ class SystemHost(object): > > def symbolicate_crash_log_if_needed(self, path): > return self.filesystem.read_text_file(path) >- >- def path_to_lldb_python_directory(self): >- if not self.platform.is_mac(): >- return '' >- return self.executive.run_command(['xcrun', 'lldb', '--python-path'], return_stderr=False).rstrip() >diff --git a/Tools/Scripts/webkitpy/test/main.py b/Tools/Scripts/webkitpy/test/main.py >index a1a45771dd22acf2f9f4b9ed1bedc04349aa6d56..5facaa546dee9658bac9848ea02e1fc482a0f2ef 100644 >--- a/Tools/Scripts/webkitpy/test/main.py >+++ b/Tools/Scripts/webkitpy/test/main.py >@@ -1,6 +1,5 @@ > # Copyright (C) 2012 Google, Inc. > # Copyright (C) 2010 Chris Jerdonek (cjerdonek@webkit.org) >-# Copyright (C) 2018 Apple Inc. All rights reserved. > # > # Redistribution and use in source and binary forms, with or without > # modification, are permitted provided that the following conditions >@@ -38,58 +37,26 @@ import traceback > import unittest > > from webkitpy.common.system.logutils import configure_logging >-from webkitpy.common.system.executive import Executive > from webkitpy.common.system.filesystem import FileSystem >-from webkitpy.common.system.systemhost import SystemHost >-from webkitpy.port.config import Config > from webkitpy.test.finder import Finder > from webkitpy.test.printer import Printer > from webkitpy.test.runner import Runner, unit_test_name > > _log = logging.getLogger(__name__) > >-_host = SystemHost() >-_webkit_root = None >- >- >-def _find_lldb_webkit_tester(): >- config = Config(_host.executive, _host.filesystem) >- lldb_webkit_tester_executable = os.path.join(config.build_directory(config.default_configuration()), 'lldbWebKitTester') >- return os.path.isfile(lldb_webkit_tester_executable) and os.access(lldb_webkit_tester_executable, os.X_OK) >- >- >-def _build_lldb_webkit_tester(): >- if not _host.platform.is_mac(): >- _log.error('lldbWebKitTester is not supported on this platform.') >- return False >- config = Config(_host.executive, _host.filesystem) >- build_lldbwebkittester = os.path.join(_webkit_root, 'Tools', 'Scripts', 'build-lldbwebkittester') >- return _host.executive.run_command([build_lldbwebkittester, config.flag_for_configuration(config.default_configuration())], return_exit_code=True) == 0 >- > > def main(): >- global _webkit_root > configure_logging(logger=_log) > > up = os.path.dirname >- _webkit_root = up(up(up(up(up(os.path.abspath(__file__)))))) >+ webkit_root = up(up(up(up(up(os.path.abspath(__file__)))))) > > tester = Tester() >- tester.add_tree(os.path.join(_webkit_root, 'Tools', 'Scripts'), 'webkitpy') >+ tester.add_tree(os.path.join(webkit_root, 'Tools', 'Scripts'), 'webkitpy') > > # There is no WebKit2 on Windows, so we don't need to run WebKit2 unittests on it. > if not (sys.platform.startswith('win') or sys.platform == 'cygwin'): >- tester.add_tree(os.path.join(_webkit_root, 'Source', 'WebKit', 'Scripts'), 'webkit') >- >- lldb_python_directory = _host.path_to_lldb_python_directory() >- if os.path.isdir(lldb_python_directory): >- if lldb_python_directory not in sys.path: >- sys.path.append(lldb_python_directory) >- tester.add_tree(os.path.join(_webkit_root, 'Tools', 'lldb')) >- will_run_lldb_webkit_tests = True >- else: >- _log.info("Skipping lldb_webkit tests; could not find path to lldb.py '{}'.".format(lldb_python_directory)) >- will_run_lldb_webkit_tests = False >+ tester.add_tree(os.path.join(webkit_root, 'Source', 'WebKit', 'Scripts'), 'webkit') > > tester.skip(('webkitpy.common.checkout.scm.scm_unittest',), 'are really, really, slow', 31818) > if sys.platform.startswith('win'): >@@ -104,11 +71,11 @@ def main(): > from google.appengine.dist import use_library > use_library('django', '1.2') > dev_appserver.fix_sys_path() >- tester.add_tree(os.path.join(_webkit_root, 'Tools', 'QueueStatusServer')) >+ tester.add_tree(os.path.join(webkit_root, 'Tools', 'QueueStatusServer')) > else: > _log.info('Skipping QueueStatusServer tests; the Google AppEngine Python SDK is not installed.') > >- return not tester.run(will_run_lldb_webkit_tests=will_run_lldb_webkit_tests) >+ return not tester.run() > > > def _print_results_as_json(stream, all_test_names, failures, errors): >@@ -164,7 +131,7 @@ class Tester(object): > > return parser.parse_args(argv) > >- def run(self, will_run_lldb_webkit_tests=False): >+ def run(self): > self._options, args = self._parse_args() > self.printer.configure(self._options) > >@@ -175,9 +142,9 @@ class Tester(object): > _log.error('No tests to run') > return False > >- return self._run_tests(names, will_run_lldb_webkit_tests) >+ return self._run_tests(names) > >- def _run_tests(self, names, will_run_lldb_webkit_tests): >+ def _run_tests(self, names): > # Make sure PYTHONPATH is set up properly. > sys.path = self.finder.additional_paths(sys.path) + sys.path > >@@ -187,14 +154,6 @@ class Tester(object): > from webkitpy.thirdparty import autoinstall_everything > autoinstall_everything() > >- if will_run_lldb_webkit_tests: >- self.printer.write_update("Checking lldbWebKitTester ...") >- if not _find_lldb_webkit_tester(): >- self.printer.write_update("Building lldbWebKitTester ...") >- if not _build_lldb_webkit_tester(): >- _log.error('Failed to build lldbWebKitTester.') >- return False >- > if self._options.coverage: > _log.warning("Checking code coverage, so running things serially") > self._options.child_processes = 1 >diff --git a/Tools/lldb/lldbWebKitTester/Configurations/Base.xcconfig b/Tools/lldb/lldbWebKitTester/Configurations/Base.xcconfig >deleted file mode 100644 >index 8c0e7d8035267b7fe7b472c2c42b0bf6db368d4e..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldbWebKitTester/Configurations/Base.xcconfig >+++ /dev/null >@@ -1,119 +0,0 @@ >-// Copyright (C) 2015-2018 Apple Inc. All rights reserved. >-// >-// Redistribution and use in source and binary forms, with or without >-// modification, are permitted provided that the following conditions >-// are met: >-// 1. Redistributions of source code must retain the above copyright >-// notice, this list of conditions and the following disclaimer. >-// 2. Redistributions in binary form must reproduce the above copyright >-// notice, this list of conditions and the following disclaimer in the >-// documentation and/or other materials provided with the distribution. >-// >-// THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >-// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >-// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >- >-#include? "../../../../../Internal/Configurations/HaveInternalSDK.xcconfig" >- >-USE_INTERNAL_SDK = $(USE_INTERNAL_SDK_$(CONFIGURATION)); >-USE_INTERNAL_SDK_Production = YES; >-USE_INTERNAL_SDK_Debug = $(HAVE_INTERNAL_SDK); >-USE_INTERNAL_SDK_Release = $(HAVE_INTERNAL_SDK); >- >-ALWAYS_SEARCH_USER_PATHS = NO; >- >-CLANG_CXX_LANGUAGE_STANDARD = gnu++14; >-CLANG_CXX_LIBRARY = libc++; >-CLANG_ENABLE_OBJC_WEAK = YES; >-CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; >-CLANG_WARN_BOOL_CONVERSION = YES; >-CLANG_WARN_CONSTANT_CONVERSION = YES; >-CLANG_WARN_CXX0X_EXTENSIONS = NO; >-CLANG_WARN_EMPTY_BODY = YES; >-CLANG_WARN_ENUM_CONVERSION = YES; >-CLANG_WARN_INFINITE_RECURSION = YES; >-CLANG_WARN_INT_CONVERSION = YES; >-CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; >-CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; >-CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; >-CLANG_WARN_STRICT_PROTOTYPES = YES; >-CLANG_WARN_SUSPICIOUS_MOVE = YES; >-CLANG_WARN_UNREACHABLE_CODE = NO; >-CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; >-GCC_WARN_UNDECLARED_SELECTOR = YES; >-COMBINE_HIDPI_IMAGES = NO; >-DEBUG_INFORMATION_FORMAT = dwarf-with-dsym; >-ENABLE_STRICT_OBJC_MSGSEND = YES; >-GCC_C_LANGUAGE_STANDARD = gnu99; >-GCC_DEBUGGING_SYMBOLS = default; >-GCC_DYNAMIC_NO_PIC = NO; >-GCC_ENABLE_CPP_EXCEPTIONS = NO; >-GCC_ENABLE_CPP_RTTI = NO; >-GCC_ENABLE_OBJC_EXCEPTIONS = YES; >-GCC_ENABLE_SYMBOL_SEPARATION = NO; >-GCC_FAST_OBJC_DISPATCH = YES; >-GCC_GENERATE_DEBUGGING_SYMBOLS = YES; >-GCC_NO_COMMON_BLOCKS = YES; >-GCC_OBJC_CALL_CXX_CDTORS = YES; >-GCC_PRECOMPILE_PREFIX_HEADER = YES; >-GCC_PREPROCESSOR_DEFINITIONS = $(DEBUG_DEFINES) $(inherited); >-GCC_STRICT_ALIASING = YES; >-GCC_SYMBOLS_PRIVATE_EXTERN = NO; >-GCC_THREADSAFE_STATICS = NO; >-GCC_TREAT_WARNINGS_AS_ERRORS = YES; >-GCC_VERSION = com.apple.compilers.llvm.clang.1_0; >-GCC_WARN_64_TO_32_BIT_CONVERSION = NO; >-GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO; >-GCC_WARN_ABOUT_MISSING_NEWLINE = YES; >-GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES; >-GCC_WARN_ABOUT_RETURN_TYPE = YES; >-GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES; >-GCC_WARN_SIGN_COMPARE = YES; >-GCC_WARN_UNDECLARED_SELECTOR = YES; >-GCC_WARN_UNINITIALIZED_AUTOS = YES; >-GCC_WARN_UNUSED_FUNCTION = YES; >-GCC_WARN_UNUSED_VARIABLE = NO; >-WARNING_CFLAGS = -Wcast-qual -Wchar-subscripts -Wextra-tokens -Wformat=2 -Winit-self -Wmissing-format-attribute -Wmissing-noreturn -Wpacked -Wpointer-arith -Wredundant-decls -Wundef -Wwrite-strings -Wexit-time-destructors -Wglobal-constructors -Wtautological-compare -Wimplicit-fallthrough; >- >-HEADER_SEARCH_PATHS = ${BUILT_PRODUCTS_DIR}/usr/local/include; >- >-TARGET_MAC_OS_X_VERSION_MAJOR = $(TARGET_MAC_OS_X_VERSION_MAJOR$(MACOSX_DEPLOYMENT_TARGET:suffix:identifier)); >-TARGET_MAC_OS_X_VERSION_MAJOR_11 = 101100; >-TARGET_MAC_OS_X_VERSION_MAJOR_12 = 101200; >-TARGET_MAC_OS_X_VERSION_MAJOR_13 = 101300; >-TARGET_MAC_OS_X_VERSION_MAJOR_14 = 101400; >-TARGET_MAC_OS_X_VERSION_MAJOR_15 = 101500; >- >-SUPPORTED_PLATFORMS = macosx; >- >-// DEBUG_DEFINES, GCC_OPTIMIZATION_LEVEL, STRIP_INSTALLED_PRODUCT and DEAD_CODE_STRIPPING vary between the debug and normal variants. >-// We set up the values for each variant here, and have the Debug configuration in the Xcode project use the _debug variant. >-DEBUG_DEFINES_debug = ; >-DEBUG_DEFINES_normal = NDEBUG; >-DEBUG_DEFINES = $(DEBUG_DEFINES_$(CURRENT_VARIANT)); >- >-GCC_OPTIMIZATION_LEVEL = $(GCC_OPTIMIZATION_LEVEL_$(CURRENT_VARIANT)); >-GCC_OPTIMIZATION_LEVEL_normal[sdk=macosx*] = 2; >-GCC_OPTIMIZATION_LEVEL_debug = 0; >- >-STRIP_INSTALLED_PRODUCT = $(STRIP_INSTALLED_PRODUCT_$(CURRENT_VARIANT)); >-STRIP_INSTALLED_PRODUCT_normal = YES; >-STRIP_INSTALLED_PRODUCT_debug = NO; >- >-DEAD_CODE_STRIPPING_debug = NO; >-DEAD_CODE_STRIPPING_normal = YES; >-DEAD_CODE_STRIPPING = $(DEAD_CODE_STRIPPING_$(CURRENT_VARIANT)); >- >-SDKROOT = macosx.internal; >- >-OTHER_CFLAGS = $(ASAN_OTHER_CFLAGS); >-OTHER_CPLUSPLUSFLAGS = $(ASAN_OTHER_CPLUSPLUSFLAGS); >-OTHER_LDFLAGS = $(ASAN_OTHER_LDFLAGS); >diff --git a/Tools/lldb/lldbWebKitTester/Configurations/DebugRelease.xcconfig b/Tools/lldb/lldbWebKitTester/Configurations/DebugRelease.xcconfig >deleted file mode 100644 >index 8c4f71700ee4a43e5aa60edc6902b886c949fef0..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldbWebKitTester/Configurations/DebugRelease.xcconfig >+++ /dev/null >@@ -1,45 +0,0 @@ >-// Copyright (C) 2015-2018 Apple Inc. All rights reserved. >-// >-// Redistribution and use in source and binary forms, with or without >-// modification, are permitted provided that the following conditions >-// are met: >-// 1. Redistributions of source code must retain the above copyright >-// notice, this list of conditions and the following disclaimer. >-// 2. Redistributions in binary form must reproduce the above copyright >-// notice, this list of conditions and the following disclaimer in the >-// documentation and/or other materials provided with the distribution. >-// >-// THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >-// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >-// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >- >-#include "Base.xcconfig" >- >-ONLY_ACTIVE_ARCH = YES; >- >-TARGET_MAC_OS_X_VERSION_MAJOR = $(MAC_OS_X_VERSION_MAJOR); >- >-MACOSX_DEPLOYMENT_TARGET = $(MACOSX_DEPLOYMENT_TARGET_$(PLATFORM_NAME)_$(TARGET_MAC_OS_X_VERSION_MAJOR)); >-MACOSX_DEPLOYMENT_TARGET_macosx_101100 = 10.11; >-MACOSX_DEPLOYMENT_TARGET_macosx_101200 = 10.12; >-MACOSX_DEPLOYMENT_TARGET_macosx_101300 = 10.13; >-MACOSX_DEPLOYMENT_TARGET_macosx_101400 = 10.14; >-MACOSX_DEPLOYMENT_TARGET_macosx_101500 = 10.15; >- >-GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = YES; >-DEBUG_INFORMATION_FORMAT = dwarf; >- >-SDKROOT = $(SDKROOT_$(USE_INTERNAL_SDK)); >-SDKROOT_ = macosx; >-SDKROOT_YES = macosx.internal; >- >-WK_CCACHE_DIR = $(SRCROOT)/../../../Tools/ccache; >-#include "../../../ccache/ccache.xcconfig" >diff --git a/Tools/lldb/lldbWebKitTester/Configurations/lldbWebKitTester.xcconfig b/Tools/lldb/lldbWebKitTester/Configurations/lldbWebKitTester.xcconfig >deleted file mode 100644 >index 9da70f08be10085ee00c3bb2c6f4a21a3b12ce5d..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldbWebKitTester/Configurations/lldbWebKitTester.xcconfig >+++ /dev/null >@@ -1,34 +0,0 @@ >-// Copyright (C) 2015-2018 Apple Inc. All rights reserved. >-// >-// Redistribution and use in source and binary forms, with or without >-// modification, are permitted provided that the following conditions >-// are met: >-// 1. Redistributions of source code must retain the above copyright >-// notice, this list of conditions and the following disclaimer. >-// 2. Redistributions in binary form must reproduce the above copyright >-// notice, this list of conditions and the following disclaimer in the >-// documentation and/or other materials provided with the distribution. >-// >-// THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY >-// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE >-// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >-// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR >-// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, >-// EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, >-// PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR >-// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY >-// OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >-// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE >-// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >- >-PRODUCT_NAME = $(TARGET_NAME); >- >-RELEASE_DEFINES_debug = ; >-RELEASE_DEFINES_normal = RELEASE_WITHOUT_OPTIMIZATIONS; >-RELEASE_DEFINES = $(RELEASE_DEFINES_$(CURRENT_VARIANT)); >- >-GCC_PREPROCESSOR_DEFINITIONS = $(inherited) $(RELEASE_DEFINES); >-GCC_OPTIMIZATION_LEVEL = 0; >-STRIP_INSTALLED_PRODUCT = NO; >-DEAD_CODE_STRIPPING = NO; >-OTHER_LDFLAGS[sdk=macosx*] = $(inherited) -framework Cocoa -force_load "$(BUILT_PRODUCTS_DIR)/libWTF.a"; >diff --git a/Tools/lldb/lldbWebKitTester/Makefile b/Tools/lldb/lldbWebKitTester/Makefile >deleted file mode 100644 >index 058c21e1ba387a8ba4fc43f1444c380eec79ede9..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldbWebKitTester/Makefile >+++ /dev/null >@@ -1,2 +0,0 @@ >-SCRIPTS_PATH = ../../Scripts >-include ../../../Makefile.shared >diff --git a/Tools/lldb/lldbWebKitTester/lldbWebKitTester.xcodeproj/project.pbxproj b/Tools/lldb/lldbWebKitTester/lldbWebKitTester.xcodeproj/project.pbxproj >deleted file mode 100644 >index c52a15e128337b0b6e4839509054ac3da7316217..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldbWebKitTester/lldbWebKitTester.xcodeproj/project.pbxproj >+++ /dev/null >@@ -1,205 +0,0 @@ >-// !$*UTF8*$! >-{ >- archiveVersion = 1; >- classes = { >- }; >- objectVersion = 46; >- objects = { >- >-/* Begin PBXBuildFile section */ >- 7CB6844B1AFA7978002B305C /* main.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7CB6844A1AFA7978002B305C /* main.cpp */; }; >- CE6C3AFF20C0B17B003E33D8 /* libWTF.a in Frameworks */ = {isa = PBXBuildFile; fileRef = CE6C3AFE20C0B17B003E33D8 /* libWTF.a */; }; >- CE6C3B0120C0C444003E33D8 /* libicucore.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = CE6C3B0020C0C443003E33D8 /* libicucore.dylib */; }; >-/* End PBXBuildFile section */ >- >-/* Begin PBXCopyFilesBuildPhase section */ >- 7C4AB39F1AF0276C003FC8D1 /* CopyFiles */ = { >- isa = PBXCopyFilesBuildPhase; >- buildActionMask = 2147483647; >- dstPath = /usr/share/man/man1/; >- dstSubfolderSpec = 0; >- files = ( >- ); >- runOnlyForDeploymentPostprocessing = 1; >- }; >-/* End PBXCopyFilesBuildPhase section */ >- >-/* Begin PBXFileReference section */ >- 7C2227511AFC4D9C008C3338 /* Base.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Base.xcconfig; sourceTree = "<group>"; }; >- 7C2227521AFC4D9C008C3338 /* lldbWebKitTester.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = lldbWebKitTester.xcconfig; sourceTree = "<group>"; }; >- 7C2227531AFC4D9C008C3338 /* DebugRelease.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = DebugRelease.xcconfig; sourceTree = "<group>"; }; >- 7C4AB3A11AF0276C003FC8D1 /* lldbWebKitTester */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = lldbWebKitTester; sourceTree = BUILT_PRODUCTS_DIR; }; >- 7CB6844A1AFA7978002B305C /* main.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cpp; sourceTree = SOURCE_ROOT; }; >- CE6C3AFE20C0B17B003E33D8 /* libWTF.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libWTF.a; sourceTree = "<group>"; }; >- CE6C3B0020C0C443003E33D8 /* libicucore.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libicucore.dylib; path = usr/lib/libicucore.dylib; sourceTree = SDKROOT; }; >-/* End PBXFileReference section */ >- >-/* Begin PBXFrameworksBuildPhase section */ >- 7C4AB39E1AF0276C003FC8D1 /* Frameworks */ = { >- isa = PBXFrameworksBuildPhase; >- buildActionMask = 2147483647; >- files = ( >- CE6C3B0120C0C444003E33D8 /* libicucore.dylib in Frameworks */, >- CE6C3AFF20C0B17B003E33D8 /* libWTF.a in Frameworks */, >- ); >- runOnlyForDeploymentPostprocessing = 0; >- }; >-/* End PBXFrameworksBuildPhase section */ >- >-/* Begin PBXGroup section */ >- 7C2227501AFC4D0A008C3338 /* Configurations */ = { >- isa = PBXGroup; >- children = ( >- 7C2227511AFC4D9C008C3338 /* Base.xcconfig */, >- 7C2227531AFC4D9C008C3338 /* DebugRelease.xcconfig */, >- 7C2227521AFC4D9C008C3338 /* lldbWebKitTester.xcconfig */, >- ); >- path = Configurations; >- sourceTree = "<group>"; >- }; >- 7C4AB3981AF0276C003FC8D1 = { >- isa = PBXGroup; >- children = ( >- 7C2227501AFC4D0A008C3338 /* Configurations */, >- CE3F4425205C6A01007195B3 /* Frameworks */, >- CE3F4424205C66D9007195B3 /* lldbWebKitTester */, >- 7C4AB3A21AF0276C003FC8D1 /* Products */, >- ); >- sourceTree = "<group>"; >- }; >- 7C4AB3A21AF0276C003FC8D1 /* Products */ = { >- isa = PBXGroup; >- children = ( >- 7C4AB3A11AF0276C003FC8D1 /* lldbWebKitTester */, >- ); >- name = Products; >- sourceTree = "<group>"; >- }; >- CE3F4424205C66D9007195B3 /* lldbWebKitTester */ = { >- isa = PBXGroup; >- children = ( >- 7CB6844A1AFA7978002B305C /* main.cpp */, >- ); >- name = lldbWebKitTester; >- sourceTree = "<group>"; >- }; >- CE3F4425205C6A01007195B3 /* Frameworks */ = { >- isa = PBXGroup; >- children = ( >- CE6C3B0020C0C443003E33D8 /* libicucore.dylib */, >- CE6C3AFE20C0B17B003E33D8 /* libWTF.a */, >- ); >- name = Frameworks; >- sourceTree = "<group>"; >- }; >-/* End PBXGroup section */ >- >-/* Begin PBXNativeTarget section */ >- 7C4AB3A01AF0276C003FC8D1 /* lldbWebKitTester */ = { >- isa = PBXNativeTarget; >- buildConfigurationList = 7C4AB3A81AF0276C003FC8D1 /* Build configuration list for PBXNativeTarget "lldbWebKitTester" */; >- buildPhases = ( >- 7C4AB39D1AF0276C003FC8D1 /* Sources */, >- 7C4AB39E1AF0276C003FC8D1 /* Frameworks */, >- 7C4AB39F1AF0276C003FC8D1 /* CopyFiles */, >- ); >- buildRules = ( >- ); >- dependencies = ( >- ); >- name = lldbWebKitTester; >- productName = lldbWebKitTester; >- productReference = 7C4AB3A11AF0276C003FC8D1 /* lldbWebKitTester */; >- productType = "com.apple.product-type.tool"; >- }; >-/* End PBXNativeTarget section */ >- >-/* Begin PBXProject section */ >- 7C4AB3991AF0276C003FC8D1 /* Project object */ = { >- isa = PBXProject; >- attributes = { >- LastUpgradeCheck = 0700; >- }; >- buildConfigurationList = 7C4AB39C1AF0276C003FC8D1 /* Build configuration list for PBXProject "lldbWebKitTester" */; >- compatibilityVersion = "Xcode 3.2"; >- developmentRegion = English; >- hasScannedForEncodings = 0; >- knownRegions = ( >- en, >- ); >- mainGroup = 7C4AB3981AF0276C003FC8D1; >- productRefGroup = 7C4AB3A21AF0276C003FC8D1 /* Products */; >- projectDirPath = ""; >- projectRoot = ""; >- targets = ( >- 7C4AB3A01AF0276C003FC8D1 /* lldbWebKitTester */, >- ); >- }; >-/* End PBXProject section */ >- >-/* Begin PBXSourcesBuildPhase section */ >- 7C4AB39D1AF0276C003FC8D1 /* Sources */ = { >- isa = PBXSourcesBuildPhase; >- buildActionMask = 2147483647; >- files = ( >- 7CB6844B1AFA7978002B305C /* main.cpp in Sources */, >- ); >- runOnlyForDeploymentPostprocessing = 0; >- }; >-/* End PBXSourcesBuildPhase section */ >- >-/* Begin XCBuildConfiguration section */ >- 7C4AB3A61AF0276C003FC8D1 /* Debug */ = { >- isa = XCBuildConfiguration; >- baseConfigurationReference = 7C2227531AFC4D9C008C3338 /* DebugRelease.xcconfig */; >- buildSettings = { >- DEBUG_DEFINES = "$(DEBUG_DEFINES_debug)"; >- }; >- name = Debug; >- }; >- 7C4AB3A71AF0276C003FC8D1 /* Release */ = { >- isa = XCBuildConfiguration; >- baseConfigurationReference = 7C2227531AFC4D9C008C3338 /* DebugRelease.xcconfig */; >- buildSettings = { >- }; >- name = Release; >- }; >- 7C4AB3A91AF0276C003FC8D1 /* Debug */ = { >- isa = XCBuildConfiguration; >- baseConfigurationReference = 7C2227521AFC4D9C008C3338 /* lldbWebKitTester.xcconfig */; >- buildSettings = { >- }; >- name = Debug; >- }; >- 7C4AB3AA1AF0276C003FC8D1 /* Release */ = { >- isa = XCBuildConfiguration; >- baseConfigurationReference = 7C2227521AFC4D9C008C3338 /* lldbWebKitTester.xcconfig */; >- buildSettings = { >- }; >- name = Release; >- }; >-/* End XCBuildConfiguration section */ >- >-/* Begin XCConfigurationList section */ >- 7C4AB39C1AF0276C003FC8D1 /* Build configuration list for PBXProject "lldbWebKitTester" */ = { >- isa = XCConfigurationList; >- buildConfigurations = ( >- 7C4AB3A61AF0276C003FC8D1 /* Debug */, >- 7C4AB3A71AF0276C003FC8D1 /* Release */, >- ); >- defaultConfigurationIsVisible = 0; >- defaultConfigurationName = Release; >- }; >- 7C4AB3A81AF0276C003FC8D1 /* Build configuration list for PBXNativeTarget "lldbWebKitTester" */ = { >- isa = XCConfigurationList; >- buildConfigurations = ( >- 7C4AB3A91AF0276C003FC8D1 /* Debug */, >- 7C4AB3AA1AF0276C003FC8D1 /* Release */, >- ); >- defaultConfigurationIsVisible = 0; >- defaultConfigurationName = Release; >- }; >-/* End XCConfigurationList section */ >- }; >- rootObject = 7C4AB3991AF0276C003FC8D1 /* Project object */; >-} >diff --git a/Tools/lldb/lldbWebKitTester/main.cpp b/Tools/lldb/lldbWebKitTester/main.cpp >deleted file mode 100644 >index 5af82fe58a8bfe09686fc33dab6fb46b714c2900..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldbWebKitTester/main.cpp >+++ /dev/null >@@ -1,65 +0,0 @@ >-/* >- * Copyright (C) 2018 Apple Inc. All rights reserved. >- * >- * Redistribution and use in source and binary forms, with or without >- * modification, are permitted provided that the following conditions >- * are met: >- * 1. Redistributions of source code must retain the above copyright >- * notice, this list of conditions and the following disclaimer. >- * 2. Redistributions in binary form must reproduce the above copyright >- * notice, this list of conditions and the following disclaimer in the >- * documentation and/or other materials provided with the distribution. >- * >- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' >- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, >- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR >- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS >- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR >- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF >- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS >- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN >- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) >- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF >- * THE POSSIBILITY OF SUCH DAMAGE. >- */ >- >-#include <stdio.h> >-#include <wtf/text/StringBuilder.h> >-#include <wtf/text/WTFString.h> >- >-extern void breakForTestingSummaryProviders(); >-void breakForTestingSummaryProviders() { return; } >- >-template<size_t length> >-static String utf16String(const char16_t (&string)[length]) >-{ >- StringBuilder builder; >- builder.reserveCapacity(length - 1); >- for (auto c : string) >- builder.append(static_cast<UChar>(c)); >- return builder.toString(); >-} >- >-static void testSummaryProviders() >-{ >- String aNullString { "" }; >- StringImpl* aNullStringImpl = aNullString.impl(); >- >- String anEmptyString { "" }; >- StringImpl* anEmptyStringImpl = anEmptyString.impl(); >- >- String an8BitString { "résumé" }; >- StringImpl* an8BitStringImpl = an8BitString.impl(); >- >- String a16BitString = utf16String(u"\u1680Cappuccino\u1680"); >- StringImpl* a16BitStringImpl = a16BitString.impl(); >- >- breakForTestingSummaryProviders(); >-} >- >-int main(int argc, const char* argv[]) >-{ >- testSummaryProviders(); >- fprintf(stderr, "This executable does nothing and is only meant for debugging lldb_webkit.py.\n"); >- return 0; >-} >diff --git a/Tools/lldb/lldb_webkit_unittest.py b/Tools/lldb/lldb_webkit_unittest.py >deleted file mode 100755 >index 7f62f45617cbd95b23b5d46d78d6bade654fbf3d..0000000000000000000000000000000000000000 >--- a/Tools/lldb/lldb_webkit_unittest.py >+++ /dev/null >@@ -1,139 +0,0 @@ >-#!/usr/bin/env python >-# -*- coding: utf-8 -*- >-# >-# Copyright (C) 2018 Apple Inc. All rights reserved. >-# >-# Redistribution and use in source and binary forms, with or without >-# modification, are permitted provided that the following conditions >-# are met: >-# 1. Redistributions of source code must retain the above copyright >-# notice, this list of conditions and the following disclaimer. >-# 2. Redistributions in binary form must reproduce the above copyright >-# notice, this list of conditions and the following disclaimer in the >-# documentation and/or other materials provided with the distribution. >-# >-# THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND ANY >-# EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED >-# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE >-# DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY >-# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES >-# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; >-# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON >-# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT >-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS >-# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. >- >-import atexit >-import lldb >-import lldb_webkit >-import os >-import sys >-import unittest >- >-from webkitpy.common.system.systemhost import SystemHost >-from webkitpy.port.config import Config >- >- >-# We cache the lldb debug session state so that we don't create it again for each call to a serial_test_ method. >-# We store it in a global variable so that we can delete this cached state on exit(3). >-# FIXME: Remove this once test-webkitpy supports class and module fixtures (i.e. setUpClass()/setUpModule() >-# are called exactly once per class/module). >-cached_debug_session = None >- >- >-# FIXME: Remove this once test-webkitpy supports class and module fixtures (i.e. setUpClass()/setUpModule() >-# are called exactly once per class/module). >-@atexit.register >-def destroy_cached_debug_session(): >- if cached_debug_session: >- cached_debug_session.tearDown() >- >- >-class LLDBDebugSession(object): >- @classmethod >- def setup(cls): >- LLDB_WEBKIT_TESTER_NAME = 'lldbWebKitTester' >- BREAK_FOR_TESTING_FUNCTION_NAME = 'breakForTestingSummaryProviders' >- >- cls.sbDebugger = lldb.SBDebugger.Create() >- cls.sbDebugger.SetAsync(False) >- >- host = SystemHost() >- config = Config(host.executive, host.filesystem) >- cls.lldbWebKitTesterExecutable = os.path.join(config.build_directory(config.default_configuration()), LLDB_WEBKIT_TESTER_NAME) >- >- cls.sbTarget = cls.sbDebugger.CreateTarget(str(cls.lldbWebKitTesterExecutable)) >- assert cls.sbTarget >- cls.sbTarget.BreakpointCreateByName(BREAK_FOR_TESTING_FUNCTION_NAME, cls.sbTarget.GetExecutable().GetFilename()) >- >- argv = None >- envp = None >- cls.sbProcess = cls.sbTarget.LaunchSimple(argv, envp, os.getcwd()) >- assert cls.sbProcess >- assert cls.sbProcess.GetState() == lldb.eStateStopped >- >- cls.sbThread = cls.sbProcess.GetThreadAtIndex(0) >- assert cls.sbThread >- >- # Frame 0 is the function with name BREAK_FOR_TESTING_FUNCTION_NAME. We want the frame of the caller of >- # BREAK_FOR_TESTING_FUNCTION_NAME because it has all the interesting local variables we want to test. >- cls.sbFrame = cls.sbThread.GetFrameAtIndex(1) >- assert cls.sbFrame >- >- @classmethod >- def tearDown(cls): >- cls.sbProcess.Kill() >- >- >-class TestSummaryProviders(unittest.TestCase): >- @classmethod >- def setUpClass(cls): >- global cached_debug_session >- if not cached_debug_session: >- cached_debug_session = LLDBDebugSession() >- cached_debug_session.setup() >- >- @property >- def _sbFrame(self): >- return cached_debug_session.sbFrame >- >- # The LLDB Python module does not work with Python multiprocessing and causes errors of the form: >- # objc[76794]: +[__MDQuery initialize] may have been in progress in another thread when fork() was called. >- # We cannot safely call it or ignore it in the fork() child process. Crashing instead. >- # So, we run the following tests serially. >- >- # MARK: WTFStringImpl_SummaryProvider test cases >- >- def serial_test_WTFStringImpl_SummaryProvider_null_string(self): >- summary = lldb_webkit.WTFStringImpl_SummaryProvider(self._sbFrame.FindVariable('aNullStringImpl'), {}) >- self.assertEqual(summary, "{ length = 0, is8bit = 1, contents = '' }") >- >- def serial_test_WTFStringImpl_SummaryProvider_empty_string(self): >- summary = lldb_webkit.WTFStringImpl_SummaryProvider(self._sbFrame.FindVariable('anEmptyStringImpl'), {}) >- self.assertEqual(summary, "{ length = 0, is8bit = 1, contents = '' }") >- >- def serial_test_WTFStringImpl_SummaryProvider_8bit_string(self): >- summary = lldb_webkit.WTFStringImpl_SummaryProvider(self._sbFrame.FindVariable('an8BitStringImpl'), {}) >- self.assertEqual(summary, "{ length = 8, is8bit = 1, contents = 'r\\xe9sum\\xe9' }") >- >- def serial_test_WTFStringImpl_SummaryProvider_16bit_string(self): >- summary = lldb_webkit.WTFStringImpl_SummaryProvider(self._sbFrame.FindVariable('a16BitStringImpl'), {}) >- self.assertEqual(summary, u"{ length = 13, is8bit = 0, contents = '\\u1680Cappuccino\\u1680\\x00' }") >- >- # MARK: WTFString_SummaryProvider test cases >- >- def serial_test_WTFString_SummaryProvider_null_string(self): >- summary = lldb_webkit.WTFString_SummaryProvider(self._sbFrame.FindVariable('aNullString'), {}) >- self.assertEqual(summary, "{ length = 0, contents = '' }") >- >- def serial_test_WTFString_SummaryProvider_empty_string(self): >- summary = lldb_webkit.WTFString_SummaryProvider(self._sbFrame.FindVariable('anEmptyString'), {}) >- self.assertEqual(summary, "{ length = 0, contents = '' }") >- >- def serial_test_WTFString_SummaryProvider_8bit_string(self): >- summary = lldb_webkit.WTFString_SummaryProvider(self._sbFrame.FindVariable('an8BitString'), {}) >- self.assertEqual(summary, "{ length = 8, contents = 'r\\xe9sum\\xe9' }") >- >- def serial_test_WTFString_SummaryProvider_16bit_string(self): >- summary = lldb_webkit.WTFString_SummaryProvider(self._sbFrame.FindVariable('a16BitString'), {}) >- self.assertEqual(summary, u"{ length = 13, contents = '\\u1680Cappuccino\\u1680\\x00' }")
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 186240
: 341854