Fix issue #597 - error if bin is a source file

This commit is contained in:
Ganesh Viswanathan 2019-06-02 00:42:41 -05:00 • committed by Dominik Picheta
commit 016f42c34a
4 changed files with 20 additions and 0 deletions

View file

@ -585,6 +585,12 @@ test "can pass args with spaces to Nim (#351)":
checkpoint output
check exitCode == QuitSuccess
test "error if `bin` is a source file (#597)":
cd "issue597":
var (output, exitCode) = execNimble("build")
check exitCode != QuitSuccess
check output.contains("entry should not be a source file: test.nim")
suite "reverse dependencies":
test "basic test":
cd "revdep/mydep":