diff options
author | Aaron Smith <aaron.smith@microsoft.com> | 2019-08-14 00:14:15 +0000 |
---|---|---|
committer | Aaron Smith <aaron.smith@microsoft.com> | 2019-08-14 00:14:15 +0000 |
commit | 2a39024ac822fb8e5fb4c1ad3b61697bced919e8 (patch) | |
tree | 21fb62494f0a25b6dfa6bd3b3893d51a3e010d1c /lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py | |
parent | 2a312fc9899ba66c519401b9c98b0880e405c855 (diff) | |
download | bcm5719-llvm-2a39024ac822fb8e5fb4c1ad3b61697bced919e8.tar.gz bcm5719-llvm-2a39024ac822fb8e5fb4c1ad3b61697bced919e8.zip |
Update Python tests for lldb-server on Windows
Summary: Thanks to Hui Huang and reviewers for all the help with this patch!
Reviewers: labath, jfb, clayborg
Reviewed By: labath
Subscribers: Hui, clayborg, dexonsmith, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D61687
llvm-svn: 368776
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py index ef96b55b90d..e23c34d82f0 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteModuleInfo.py @@ -1,6 +1,6 @@ from __future__ import print_function - +import json import gdbremote_testcase import lldbgdbserverutils from lldbsuite.support import seven @@ -20,9 +20,9 @@ class TestGdbRemoteModuleInfo(gdbremote_testcase.GdbRemoteTestCaseBase): info = self.parse_process_info_response(context) self.test_sequence.add_log_lines([ - 'read packet: $jModulesInfo:[{"file":"%s","triple":"%s"}]]#00' % ( - lldbutil.append_to_process_working_directory(self, "a.out"), - seven.unhexlify(info["triple"])), + 'read packet: $jModulesInfo:%s]#00' % json.dumps( + [{"file":lldbutil.append_to_process_working_directory(self, "a.out"), + "triple":seven.unhexlify(info["triple"])}]), {"direction": "send", "regex": r'^\$\[{(.*)}\]\]#[0-9A-Fa-f]{2}', "capture": {1: "spec"}}, |