[wine-zh] Fwd: Full Stack on Wine 计划 - 2. 重现 bsdtar bug 并为 NtQueryEaFile 写一组测试用例

  • From: Huanjie Liu <micking.liu@xxxxxxxxx>
  • To: wine-zh@xxxxxxxxxxxxx, Quanyang Liu <lqymgt@xxxxxxxxx>
  • Date: Sat, 2 May 2015 11:37:00 +0800

Hi, 完成过程中遇到了一些问题

我当时编译安装的是wine官方的64位,之前刷过文档,今天才开始做,在wine64/dlls/kernel32/tests
下运行文档里面的测试命令,结果是跳过了测试
thread.c:334: Tests skipped: child process wasn't mapped at same
address, so can't do CreateRemoteThread tests.
thread: 0 tests executed (0 marked as todo, 0 failures), 0 skipped.
thread.c:762: Test marked todo: access restrictions not obeyed
thread.c:763: Test marked todo: access restrictions not obeyed
thread.c:772: Test marked todo: rc=1 error=-559038737 disabled=0
fixme:thread:NtQueryInformationThread Cannot get kerneltime or usertime
of other threads
fixme:thread:SetThreadIdealProcessor (0xfffffffffffffffe): stub
fixme:thread:SetThreadIdealProcessor (0xfffffffffffffffe): stub
fixme:thread:SetThreadIdealProcessor (0xfffffffffffffffe): stub
thread.c:1061: 100 QueueUserWorkItem calls took 4ms
thread.c:1630: Test marked todo: thread pool apis not supported.
thread: 445 tests executed (4 marked as todo, 0 failures), 1 skipped.

我想问的是这样子算有问题的吗,我是不是应该编译之前列表里说的wine版本,还有就是重新写了一个c测试文件之后是要重新编译
一整个吗,以为源文件都在wine-git文件夹下,而make test只能在wine64/dlls/kernel32/tests下。

还有我想问一下是在tests目录下新建一个NtQueryEaFile.c文件,然后将测试内容写在里面吗,我还是不懂查询文件的Extent
Attribuites是
什么意思。

谢谢 -)


在 2015年4月27日 下午6:28,Qian Hong <fracting@xxxxxxxxx>写道:

补充一下需要阅读的文档,顺便欢迎新来的Quanyang同学:

https://www.winehq.org/docs/winedev-guide/testing
http://wiki.winehq.org/ConformanceTests
读完第5章之后就可以开始动手了,第一次没全读懂没关系,以后边动手边重新读。

这个测试大概只有10行到20行代码,就是创建一个空文件,然后用NtQueryEaFile查询一下这个文件的Extent
Attribuites,然后把NtQueryEaFile的返回值打印出来,就这么简单。

可以一边参考 Wine 代码中的
dlls/ntdll/tests/file.c:test_file_both_information(),
一边对照上述文档,就比较容易理解文档。
读完之后,仿照 test_file_both_information(),就可以写出一个简单的 NtQueryEaFile
测试了。只要简单的测试写出来,其他同学就可以帮你们一起改进。不管写得怎么样,写出第一个版本是最重要的,后面可以慢慢改进。




--
I won't go
Mick

Other related posts:

  • » [wine-zh] Fwd: Full Stack on Wine 计划 - 2. 重现 bsdtar bug 并为 NtQueryEaFile 写一组测试用例 - Huanjie Liu