Skip to content

Commit

Permalink
Skip stdlib tests on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
hugopl committed Nov 29, 2024
1 parent ea9f614 commit 544119d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/real_world/stdlib
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/env crystal

{% skip_file unless flag?(:linux) %}

require "colorize"

PASS = "pass".colorize.green
Expand Down Expand Up @@ -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

0 comments on commit 544119d

Please sign in to comment.