Skip to content

Commit

Permalink
Merge branch 'master' into sink-file-loads-faster
Browse files Browse the repository at this point in the history
  • Loading branch information
relud authored Apr 8, 2020
2 parents da7eb84 + bb3d8b8 commit 2a2f388
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public static String normalizeOs(String name) {
return WINDOWS;
} else if (name.startsWith("Darwin")) {
return MAC;
} else if (name.contains("Linux") || name.contains("BSD") || name.contains("SunOS")) {
} else if (name.contains("Linux") || name.contains("BSD") || name.contains("SunOS")
|| name.contains("Solaris")) {
return LINUX;
} else if (name.startsWith("iOS") || name.contains("iPhone")) {
return IOS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ public void os() {
assertEquals("Linux", NormalizeAttributes.normalizeOs("Linux"));
assertEquals("Linux", NormalizeAttributes.normalizeOs("GNU/Linux"));
assertEquals("Linux", NormalizeAttributes.normalizeOs("SunOS"));
assertEquals("Linux", NormalizeAttributes.normalizeOs("Solaris"));
assertEquals("Linux", NormalizeAttributes.normalizeOs("FreeBSD"));
assertEquals("Linux", NormalizeAttributes.normalizeOs("GNU/kFreeBSD"));
assertEquals("Other", NormalizeAttributes.normalizeOs("AIX"));
Expand Down

0 comments on commit 2a2f388

Please sign in to comment.