summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py
diff options
context:
space:
mode:
authorRaphael Isemann <teemperor@gmail.com>2020-01-09 12:09:44 +0100
committerRaphael Isemann <teemperor@gmail.com>2020-01-09 12:09:48 +0100
commit782ad91cc423bf602718e2bf9ffc59e55350463f (patch)
tree12e4d6d49ab5f9a3c3e8584ff11fa9c1826aca82 /lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py
parentccf24225e3f2356ebf0e73bb114a831bf1721222 (diff)
downloadbcm5719-llvm-782ad91cc423bf602718e2bf9ffc59e55350463f.tar.gz
bcm5719-llvm-782ad91cc423bf602718e2bf9ffc59e55350463f.zip
[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.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/commands/target/create-no-such-arch/TestNoSuchArch.py4
1 files changed, 2 insertions, 2 deletions
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
OpenPOWER on IntegriCloud