diff --git a/test/real_world/stdlib b/test/real_world/stdlib index f131b19..2d74ebc 100755 --- a/test/real_world/stdlib +++ b/test/real_world/stdlib @@ -1,4 +1,7 @@ #!/bin/env crystal + +{% skip_file unless flag?(:linux) %} + require "colorize" PASS = "pass".colorize.green @@ -63,7 +66,9 @@ end printf("%% of success: %.2f%%\n", pass / stdlib_files.size) -File.write("#{__DIR__}/stdlib_failed.txt", failed.join("\n")) if failed != expected_fail abort("List of failed tests difer, check stdlib_failed.txt and stdlib_expected_to_fail.txt".colorize.red) + + File.write("#{__DIR__}/stdlib_failed.txt", failed.join("\n")) + system("diff -u #{__DIR__}/stdlib_failed.txt #{__DIR__}/stdlib_failed.txt") end