[llvm-mc] Better error handling in ENOENT case + test.
authorDavide Italiano <davide@freebsd.org>
Mon, 14 Sep 2015 17:10:01 +0000 (17:10 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 14 Sep 2015 17:10:01 +0000 (17:10 +0000)
commit97095fc404d5bc58e411c193e8e86709a8c8e646
treeafd5dbd712711e30a3ea63ef5a56ff774dfeb79a
parentafca6b4138a3b9deb57fbd2e0d7a23afd8d174ce
[llvm-mc] Better error handling in ENOENT case + test.

This is a follow up to r247518.
As a general note, I think we could do a much better job testing for
error conditions in tools. I already anticipated in a previous mail,
but while implementing this I noticed that the code coverage we have
for error checking is pretty low. I can arbitrarily remove checks from
several tools and the suite still passes.

Differential Revision:  http://reviews.llvm.org/D12846

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247582 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-mc/basic.test [new file with mode: 0644]
tools/llvm-mc/llvm-mc.cpp