From 782ad91cc423bf602718e2bf9ffc59e55350463f Mon Sep 17 00:00:00 2001 From: Raphael Isemann Date: Thu, 9 Jan 2020 12:09:44 +0100 Subject: [lldb] Fix that TestNoSuchArch.py was passing for the wrong reason The command here failed due to the type in 'create' but the expect did not actually check for the error message. This fixes the typo and adds a check for the actuall error message we should see. --- .../test/commands/target/create-no-such-arch/TestNoSuchArch.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/commands') diff --git a/lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py b/lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py index a780ca27566..4d7f0838f87 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py +++ b/lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py @@ -19,8 +19,8 @@ class NoSuchArchTestCase(TestBase): # Check that passing an invalid arch via the command-line fails but # doesn't crash self.expect( - "target crete --arch nothingtoseehere %s" % - (exe), error=True) + "target create --arch nothingtoseehere %s" % + (exe), error=True, substrs=["error: invalid triple 'nothingtoseehere'"]) # Check that passing an invalid arch via the SB API fails but doesn't # crash -- cgit v1.2.3