[llvm-commits] [llvm] r147431 - in /llvm/trunk/unittests: Bitcode/ Bitcode/BitReaderTest.cpp Bitcode/Makefile CMakeLists.txt Makefile VMCore/Makefile VMCore/pr11677.cpp

Chris Lattner clattner at apple.com
Tue Jan 3 13:28:49 PST 2012


On Jan 2, 2012, at 1:19 AM, Chandler Carruth wrote:

> Author: chandlerc
> Date: Mon Jan  2 03:19:48 2012
> New Revision: 147431
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=147431&view=rev
> Log:
> Undo the hack in r147427 and move this unittest to a better home. This
> is testing the bitcode reader's functionality, not VMCore's. Add the
> what is a hope sufficient build system mojo to build and run a new
> unittest.
> 
> Also clean up some of the test's naming. The goal for the file should be
> to unittest the Bitcode Reader, and this is just one particular test
> among potentially many in the future. Also, reverse my position and
> relegate the PR# to a comment, but stash the comment on the same line as
> the test name so it doesn't get lost. This makes the code more
> self-documenting hopefully w/o losing track of the PR number.

Ugh.  Why is this worth having a unit test for?  Is the pain/benefit ratio here actually in favor of having the test?

-Chris



More information about the llvm-commits mailing list