Skip to content

A6: Convert ThreadingTest to JUnit4 host-runnable #494

@LSantha

Description

@LSantha

Goal

Create new JUnit4 host-runnable test for threading primitives.

Source Under Test

  • File: core/src/core/org/jnode/vm/scheduler/ThreadScheduler.java (and related)
  • Class: java.lang.Thread (standard JDK)
  • Purpose: Thread start, join, sleep, yield, interrupt, priority, daemon

Current State

  • Test file: core/src/test/org/jnode/test/threads/ThreadingTest.java
  • Type: Other/Manual
  • Quality: no-tests (0 methods, 0 assertions)
  • Requires JNode: No (host JDK runnable - uses only java.lang.Thread)

Approach

  1. Create new JUnit4 test class testing Thread.start, join, sleep, yield, interrupt, priority, daemon
  2. Use only java.lang.Thread (no JNode VM dependencies)
  3. Add to CoreTestSuite
  4. Verify test compiles and passes

Acceptance Criteria

  • Test class compiles
  • sh build.sh tests exits 0
  • JUnit XML report contains the test
  • QEMU boot test passes
  • PR opened against master

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/failedThe agent exhausted its retries without producing a result.area/corecore/ — VM, kernel, scheduler, classmgr, drivers.area/testUnit tests, boot tests, QEMU test infrastructure.kind/featureNew feature or enhancement request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions