Skip to content

Commit

Permalink
also guard the LinuxMain file
Browse files Browse the repository at this point in the history
  • Loading branch information
ktoso committed Jul 20, 2022
1 parent 2275ac0 commit 863abeb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/generate_linux_tests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ def createExtensionFile(fileName, classes)
file.write "\n"

for classArray in classes
file.write "#if swift(<5.6)\n"
file.write 'extension ' + classArray[0] + " {\n"
file.write ' static var allTests: [(String, (' + classArray[0] + ") -> () throws -> Void)] {\n"
file.write " return [\n"
Expand All @@ -82,6 +83,7 @@ def createExtensionFile(fileName, classes)
file.write " ]\n"
file.write " }\n"
file.write "}\n"
file.write "#endif\n"
end
end
end
Expand Down

0 comments on commit 863abeb

Please sign in to comment.