From 875e6ac40e95effe9a54408c244795b15e79fb9b Mon Sep 17 00:00:00 2001 From: jangko Date: Thu, 28 May 2020 21:22:47 +0700 Subject: [PATCH] fix gc:arc failed compilation --- .gitignore | 3 ++- tests/test_crash.nim | 15 +++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 20ce230..a190687 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ -tests/corpus_dir \ No newline at end of file +tests/corpus_dir +*.exe diff --git a/tests/test_crash.nim b/tests/test_crash.nim index a6025a6..edfaa33 100644 --- a/tests/test_crash.nim +++ b/tests/test_crash.nim @@ -1,8 +1,11 @@ import ../nimPNG, unittest, os -suite "parse invalid input": - for x in walkDirRec("tests" / "invalidInput"): - let y = splitPath(x) - test y.tail: - discard loadPNG32(x) - check true +proc main() = + suite "parse invalid input": + for x in walkDirRec("tests" / "invalidInput"): + let y = splitPath(x) + test y.tail: + discard loadPNG32(x) + check true + +main()