C : POSIX threads library test-suite

标签 c multithreading unit-testing posix test-suite

我正在开发一个实现用户级线程的线程库(我有类似 pthread_setscope 的东西可以工作),我正在寻找一些测试集以避免为我实现的每个函数(互斥锁、条件等)编写一个测试...)

有人知道吗?

最佳答案

这是 OpenGroup POSIX Threads Test Suite :

The test suite can be run in the following modes :

  • POSIX 1003.1-1996 mode, covering Pthreads only.
  • UNIX 98 mode, covering Pthreads and the XSH5 extensions
  • POSIX 1003.1-2003 mode
  • UNIX 03 mode

This allows the test suite to easily be used during development of your threads implementation, for example initially you might only want to run the POSIX 1003.1-1996 subset.

The assertion counts are as follows:

  • POSIX 96 MODE: PTHR.hdr 286, PTHR.os 445
  • UNIX98 MODE: PTHR.hdr 365, PTHR.os 563

还有 IEEE POSIX Certification Test Suites .

最后你可以看看 Open POSIX Test Suite .

关于C : POSIX threads library test-suite,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/535908/

相关文章:

Java:线程缓存

c++ - 取消信号处理程序内的线程

c# - 测试响应式(Reactive)异步代码的策略

android - Android 上一个库项目的独立测试项目

C 链表段错误(核心转储)错误

c - 将命名结构作为匿名结构嵌入到另一个结构中

c - 在另一个.c中引用队列

c++ - 在 Eclipse 中包含项目目录之外的 C++ 文件

java - 这个程序发生了什么,更重要的是,为什么?

angular - 如何在 NgRx-Effects 中测试多个 withLatestFrom store 注入(inject)?