4800c7477b
tests ported from pthreads-win32 project. * winsup.api/pthread/test.h: Commmon declaraions for pthread tests. * winsup.api/pthread/cleanup2.c: New test. * winsup.api/pthread/cleanup3.c: Ditto. * winsup.api/pthread/condvar1.c: Ditto. * winsup.api/pthread/condvar2.c: Ditto. * winsup.api/pthread/condvar2_1.c: Ditto. * winsup.api/pthread/condvar3.c: Ditto. * winsup.api/pthread/condvar3_1.c: Ditto. * winsup.api/pthread/condvar3_2.c: Ditto. * winsup.api/pthread/condvar3_3.c: Ditto. * winsup.api/pthread/condvar4.c: Ditto. * winsup.api/pthread/condvar5.c: Ditto. * winsup.api/pthread/condvar6.c: Ditto. * winsup.api/pthread/condvar8.c: Ditto. * winsup.api/pthread/count1.c: Ditto. * winsup.api/pthread/create1.c: Ditto. * winsup.api/pthread/create2.c: Ditto. * winsup.api/pthread/equal1.c: Ditto. * winsup.api/pthread/exit1.c: Ditto. * winsup.api/pthread/exit2.c: Ditto. * winsup.api/pthread/exit3.c: Ditto. * winsup.api/pthread/inherit1.c: Ditto. * winsup.api/pthread/join0.c: Ditto. * winsup.api/pthread/join1.c: Ditto. * winsup.api/pthread/join2.c: Ditto. * winsup.api/pthread/mutex1.c: Ditto. * winsup.api/pthread/mutex1r.c: Ditto. * winsup.api/pthread/mutex2.c: Ditto. * winsup.api/pthread/mutex3.c: Ditto. * winsup.api/pthread/mutex6r.c: Ditto. * winsup.api/pthread/once1.c: Ditto. * winsup.api/pthread/priority1.c: Ditto. * winsup.api/pthread/priority2.c: Ditto. * winsup.api/pthread/self1.c: Ditto. * winsup.api/pthread/self2.c: Ditto. * winsup.api/pthread/tsd1.c: Ditto. |
||
---|---|---|
.. | ||
config | ||
libltp | ||
winsup.api | ||
ChangeLog | ||
configure | ||
configure.in | ||
Makefile.in | ||
README |
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 just like libcygwin.a, except that it wants new-cygwin1.dll, not cygwin1.dll. The testsuite adds the winsup build directory to the PATH so that new-cygwin1.dll can be found by windows during testing. Because we'll probably run into complaints about using two DLLs, we run cygrun.exe for each test. All this does is run the test with CreateProcess() so that we don't attempt to do the special code for when 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 to run such a child program itself, as the testsuite will not do any arguments or redirection for it. Same for fork, signals, etc. The testsuite/winsup.api subdirectory is for testing the API to cygwin1.dll ONLY. Create other subdirs under testsuite/ for other classes of testing. Tests in winsup.api/*.c or winsup.api/*/*.c (only one subdirectory level is allowed) either compile, run, and exit(0) or they fail. Either abort or exit with a non-zero code to indicate failure. Don't print anything to the screen if you can avoid it (except for failure reasons, of course). One .c file per test, no compile options are allowed (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.