<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rt-thread.git/src/utest, branch copilot/create-device-driver-model-docs</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/rt-thread.git/atom/src/utest?h=copilot%2Fcreate-device-driver-model-docs</id>
<link rel='self' href='http://cgit.235523.xyz/rt-thread.git/atom/src/utest?h=copilot%2Fcreate-device-driver-model-docs'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/'/>
<updated>2025-12-14T13:14:48Z</updated>
<entry>
<title>Most test cases in `src/utest` lack standardized functional documentation, as tracked in issue [#10895](https://github.com/RT-Thread/rt-thread/issues/10895). This leads to high maintenance costs, difficulty for new contributors, and inefficient code reviews.</title>
<updated>2025-12-14T13:14:48Z</updated>
<author>
<name>lhxj</name>
<email>2743257167@qq.com</email>
</author>
<published>2025-12-12T11:09:13Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=578217490531dedc60a0c807d2753145e3964375'/>
<id>urn:sha1:578217490531dedc60a0c807d2753145e3964375</id>
<content type='text'>
Solution:
This patch adds the full, standardized documentation block to `sched_mtx_tc.c`, `sched_sem_tc.c`, `sched_thread_tc.c`, `sched_timed_mtx_tc.c` and `sched_timed_sem_tc.c` following the approved template.

The documentation details:
- Test Objectives and tested APIs
- Test Scenarios
- Verification Metrics
- Dependencies
- Test Execution command and Expected Results

This makes the test case's purpose and behavior immediately clear to future maintainers and reviewers.

Relates to [#10895](https://github.com/RT-Thread/rt-thread/issues/10895)

Signed-off-by: lhxj &lt;2743257167@qq.com&gt;
</content>
</entry>
<entry>
<title> [utest][smp]Add descriptions for the SMP test cases (interrupt_pri and spinlock) #11011</title>
<updated>2025-12-11T03:14:43Z</updated>
<author>
<name>Teng mengchen</name>
<email>80439417+Tm-C-mT@users.noreply.github.com</email>
</author>
<published>2025-12-11T03:14:43Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=957bac0434db9331a702232f37e09732922ad230'/>
<id>urn:sha1:957bac0434db9331a702232f37e09732922ad230</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_thread_preemption</title>
<updated>2025-12-10T09:06:41Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-09T13:57:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d9ca9c449b7aaa48a26e2860f8755d5a18fc94e7'/>
<id>urn:sha1:d9ca9c449b7aaa48a26e2860f8755d5a18fc94e7</id>
<content type='text'>
Add comments for smp_thread_preemption.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[utest]:Modify the execution logic of smp_thread_preemptions</title>
<updated>2025-12-10T09:06:41Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-02T10:16:14Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=d56d3d95d508950b40bb646685ae8f583de1f7e9'/>
<id>urn:sha1:d56d3d95d508950b40bb646685ae8f583de1f7e9</id>
<content type='text'>
Currently, the print information of this test case fails to demonstrate that
the high-priority thread has preempted the low-priority thread. This is because
when the high-priority thread prints the thread list, there is no information
about the low-priority thread (tlow), as tlow has already completed execution
and been destroyed. Therefore, the current execution logic cannot confirm the
successful completion of the preemption operation.

Solution: After the low-priority thread (tlow) releases the lock, add a busy-wait
loop while(!finish_flag);. At this point, when the high-priority thread (thigh)
prints the thread list information, tlow can be observed in the ready state, indicating
that it has been preempted by thigh.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[utest]: Solve the address misalignment issue of atomic operations</title>
<updated>2025-12-04T03:17:50Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-12-03T11:33:24Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=dd19c0eb7205b00a8f5c9a179d95d345b5a0f6d4'/>
<id>urn:sha1:dd19c0eb7205b00a8f5c9a179d95d345b5a0f6d4</id>
<content type='text'>
In smp_assigned_idle_cores_tc, the finish_flag involves atomic operations
and thus requires address alignment.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_bind_affinity</title>
<updated>2025-11-26T14:51:25Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-20T03:42:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=9c2279acdc526a25cd6abdccee18640c4d4ebc5e'/>
<id>urn:sha1:9c2279acdc526a25cd6abdccee18640c4d4ebc5e</id>
<content type='text'>
Add comments for smp_bind_affinity, And fixed some comment issues in smp_affinity_pri2_tc.

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_affinity_pri2</title>
<updated>2025-11-26T14:51:25Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-20T03:28:04Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=cafd9c6dfea305eb664d1d94c5713d6a5f53ad47'/>
<id>urn:sha1:cafd9c6dfea305eb664d1d94c5713d6a5f53ad47</id>
<content type='text'>
Add comments for smp_affinity_pri2

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>[docs][utest]:Add comments for smp_affinity_pri1</title>
<updated>2025-11-26T14:51:25Z</updated>
<author>
<name>Tm-C-mT</name>
<email>490534897@qq.com</email>
</author>
<published>2025-11-20T02:49:30Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=ea37d4c2c931c3efb6da8b7cc68854fcf93ddfd0'/>
<id>urn:sha1:ea37d4c2c931c3efb6da8b7cc68854fcf93ddfd0</id>
<content type='text'>
Add comments for smp_affinity_pri1

Signed-off-by: Mengchen Teng &lt;teng_mengchen@163.com&gt;
</content>
</entry>
<entry>
<title>docs(utest):Add standardized documentation for Mailbox Test</title>
<updated>2025-11-23T07:14:14Z</updated>
<author>
<name>Chuan</name>
<email>fjchuanil@gmail.com</email>
</author>
<published>2025-11-16T08:40:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=af6e310b61c1e2a18f5f1e480fd52cb39a4861a9'/>
<id>urn:sha1:af6e310b61c1e2a18f5f1e480fd52cb39a4861a9</id>
<content type='text'>
Signed-off-by: ChuanN-sudo &lt;fjchuanil@gmail.com&gt;
</content>
</entry>
<entry>
<title>[docs]:Add standardized function comment blocks for mutex_tc</title>
<updated>2025-11-22T02:10:32Z</updated>
<author>
<name>4444x</name>
<email>1364421550@qq.com</email>
</author>
<published>2025-11-18T09:25:46Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/rt-thread.git/commit/?id=4e7a78ee0b7693639655ada0f5dab083f153856c'/>
<id>urn:sha1:4e7a78ee0b7693639655ada0f5dab083f153856c</id>
<content type='text'>
</content>
</entry>
</feed>
