[PATCH] D39567: [lit] Implement non-pipelined ‘mkdir’, ‘diff’ and ‘rm’ commands internally

Zachary Turner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 2 14:25:25 PDT 2017


zturner added a comment.

Update: I actually do see where you're testing that they work, but I'm not convinced that the tests are sufficient.  For several reasons.

1. it doesn't test that the builtin command is actually run versus the OS command.   It only tests that whatever command is run doesn't fail.

2. It doesn't test that the result of the command is as expected, it only tests that it doesn't return an error.  For a somewhat unrealistic illustration of this, imagine that all the commands just returned success without actually doing anything.  The test as it is written now would pass.


https://reviews.llvm.org/D39567





More information about the llvm-commits mailing list