Skip to content

Commit 8277dad

Browse files
committed
[lldb/test] Fix wrong target command failure message on Windows
This patch fixes the test failure happening on Windows introduced by `015117411e11458f9816ba4359246132164a4297`. Since the failure message comes from the OS, the test needs to support both UNIX and Windows messages. Signed-off-by: Med Ismail Bennani <[email protected]>
1 parent 74f2a9a commit 8277dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/test/API/commands/target/basic/TestTargetCommand.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ def test_target_create_multiple_args(self):
326326
@no_debug_info_test
327327
def test_target_create_nonexistent_core_file(self):
328328
self.expect("target create -c doesntexist", error=True,
329-
substrs=["Cannot open 'doesntexist': No such file or directory"])
329+
patterns=["Cannot open 'doesntexist'", ": (No such file or directory|The system cannot find the file specified)"])
330330

331331
# Write only files don't seem to be supported on Windows.
332332
@skipIfWindows
@@ -340,7 +340,7 @@ def test_target_create_unreadable_core_file(self):
340340
@no_debug_info_test
341341
def test_target_create_nonexistent_sym_file(self):
342342
self.expect("target create -s doesntexist doesntexisteither", error=True,
343-
substrs=["Cannot open '", "': No such file or directory"])
343+
patterns=["Cannot open '", ": (No such file or directory|The system cannot find the file specified)"])
344344

345345
@skipIfWindows
346346
@no_debug_info_test

0 commit comments

Comments
 (0)