nitunit: testsuite+diff do not info missing diff if raw_output.is_empty
authorJean Privat <jean@pryen.org>
Thu, 2 Jun 2016 23:39:54 +0000 (19:39 -0400)
committerJean Privat <jean@pryen.org>
Fri, 3 Jun 2016 20:04:02 +0000 (16:04 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/testing/testing_suite.nit

index 309393c..0137ef3 100644 (file)
@@ -288,7 +288,7 @@ class TestCase
                                                error = "Difference with expected output: diff -u {sav} {res_name}.out1"
                                                toolcontext.modelbuilder.failed_tests += 1
                                        end
-                               else
+                               else if not raw_output.is_empty then
                                        toolcontext.info("No diff: {sav} not found", 2)
                                end
                        end