[llvm-mc] Fix line_end_with_space.test
authorAiden Grossman <agrossman154@yahoo.com>
Fri, 31 Mar 2023 23:22:15 +0000 (23:22 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Fri, 31 Mar 2023 23:27:08 +0000 (23:27 +0000)
Currently, this test doesn't test what it was originally intended to
(that lvm-mc doesn't crash when disassembling a line that ends with a
space). This patch readds the space to the input so that this
functionality is actually tested and adds a comment describing what the
test does. The space seems to have been inadvertently removed in
c8d578311473fceb50579906658b0c017ef5b193 and then never added back
in.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D147207

llvm/test/tools/llvm-mc/line_end_with_space.test

index 673d05a..5ad5a83 100644 (file)
@@ -1 +1,3 @@
-RUN: llvm-mc -disassemble %s
+# Test that llvm-mc doesn't crash when disassembling a line that ends with a
+# space.
+RUN: echo -n ' ' | llvm-mc -disassemble