readme
来自「cygwin, 著名的在win32下模拟unix操作系统的东东」· 代码 · 共 41 行
TXT
41 行
1999-12-23 DJ Delorie <dj@cygnus.com>Here are some notes about adding and using this testsuite.First, all the programs are linked with new-libcygwin.a, which is justlike libcygwin.a, except that it wants new-cygwin1.dll, notcygwin1.dll. The testsuite adds the winsup build directory to thePATH so that new-cygwin1.dll can be found by windows during testing.Because we'll probably run into complaints about using two DLLs, werun cygrun.exe for each test. All this does is run the test withCreateProcess() so that we don't attempt to do the special code forwhen a cygwin program calls another cygwin program, as this might be a"multiple cygwins" problem.Any test that needs to test command line args or redirection needs torun such a child program itself, as the testsuite will not do anyarguments or redirection for it. Same for fork, signals, etc.The testsuite/winsup.api subdirectory is for testing the API tocygwin1.dll ONLY. Create other subdirs under testsuite/ for otherclasses of testing.Tests in winsup.api/*.c or winsup.api/*/*.c (only one subdirectorylevel is allowed) either compile, run, and exit(0) or they fail.Either abort or exit with a non-zero code to indicate failure. Don'tprint anything to the screen if you can avoid it (except for failurereasons, of course). One .c file per test, no compile options areallowed (we're testing the api, not the compiler).Tests whose filename is mentioned in known-bugs.tcl will be *expected*to fail, and will "fail" if they compile, run, and return zero."make check" will only work if you run it *on* an NT machine.Cross-checking is not supported.To test a subset of the test-suite, use$ make check CYGWIN_TESTSUITE_TESTS=regexp
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?