Skip to content

Update JUnit EnabledOnOS for OpenBSD and FreeBSD #2154

@dbwiddis

Description

@dbwiddis

In JUnit 5.9, the @EnabledOnOS annotation was expanded to include OpenBSD and FreeBSD.

We have a few tests still using the OS.OTHER enum which now actually excludes testing on those platforms.

Tests using OS.OTHER should use the appropriate OS enum, and the Platform.is*BSD() conditional removed. For example,

@EnabledOnOs(OS.OTHER)
class DiskDriversTest {
    @Test
    void testDiskDrivers() {
        if (Platform.isFreeBSD()) {

should be changed to

@EnabledOnOs(OS.FREEBSD)
class DiskDriversTest {
    @Test
    void testDiskDrivers() {

FreeBSD Tests

OpenBSD Tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatibilityExtending OSHI compatibility to OSs or versionsfirst-timers-onlyIssues reserved for brand new GitHub usersgood first issueGood issues for new contributors to work onup for grabsIssues the maintainers want community help with

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions