obs-studio/w32-pthreads/tests
jp9000 f255ae1922 first commit 2013-09-30 19:37:13 -07:00
..
Bmakefile first commit 2013-09-30 19:37:13 -07:00
ChangeLog first commit 2013-09-30 19:37:13 -07:00
Debug.dsp first commit 2013-09-30 19:37:13 -07:00
Debug.dsw first commit 2013-09-30 19:37:13 -07:00
Debug.plg first commit 2013-09-30 19:37:13 -07:00
Debug.txt first commit 2013-09-30 19:37:13 -07:00
GNUmakefile first commit 2013-09-30 19:37:13 -07:00
Makefile first commit 2013-09-30 19:37:13 -07:00
README first commit 2013-09-30 19:37:13 -07:00
README.BENCHTESTS first commit 2013-09-30 19:37:13 -07:00
SIZES.GC first commit 2013-09-30 19:37:13 -07:00
SIZES.GCE first commit 2013-09-30 19:37:13 -07:00
SIZES.VC first commit 2013-09-30 19:37:13 -07:00
SIZES.VCE first commit 2013-09-30 19:37:13 -07:00
SIZES.VSE first commit 2013-09-30 19:37:13 -07:00
Wmakefile first commit 2013-09-30 19:37:13 -07:00
barrier1.c first commit 2013-09-30 19:37:13 -07:00
barrier2.c first commit 2013-09-30 19:37:13 -07:00
barrier3.c first commit 2013-09-30 19:37:13 -07:00
barrier4.c first commit 2013-09-30 19:37:13 -07:00
barrier5.c first commit 2013-09-30 19:37:13 -07:00
barrier6.c first commit 2013-09-30 19:37:13 -07:00
benchlib.c first commit 2013-09-30 19:37:13 -07:00
benchtest.h first commit 2013-09-30 19:37:13 -07:00
benchtest1.c first commit 2013-09-30 19:37:13 -07:00
benchtest2.c first commit 2013-09-30 19:37:13 -07:00
benchtest3.c first commit 2013-09-30 19:37:13 -07:00
benchtest4.c first commit 2013-09-30 19:37:13 -07:00
benchtest5.c first commit 2013-09-30 19:37:13 -07:00
cancel1.c first commit 2013-09-30 19:37:13 -07:00
cancel2.c first commit 2013-09-30 19:37:13 -07:00
cancel3.c first commit 2013-09-30 19:37:13 -07:00
cancel4.c first commit 2013-09-30 19:37:13 -07:00
cancel5.c first commit 2013-09-30 19:37:13 -07:00
cancel6a.c first commit 2013-09-30 19:37:13 -07:00
cancel6d.c first commit 2013-09-30 19:37:13 -07:00
cancel7.c first commit 2013-09-30 19:37:13 -07:00
cancel8.c first commit 2013-09-30 19:37:13 -07:00
cancel9.c first commit 2013-09-30 19:37:13 -07:00
cleanup0.c first commit 2013-09-30 19:37:13 -07:00
cleanup1.c first commit 2013-09-30 19:37:13 -07:00
cleanup2.c first commit 2013-09-30 19:37:13 -07:00
cleanup3.c first commit 2013-09-30 19:37:13 -07:00
condvar1.c first commit 2013-09-30 19:37:13 -07:00
condvar1_1.c first commit 2013-09-30 19:37:13 -07:00
condvar1_2.c first commit 2013-09-30 19:37:13 -07:00
condvar2.c first commit 2013-09-30 19:37:13 -07:00
condvar2_1.c first commit 2013-09-30 19:37:13 -07:00
condvar3.c first commit 2013-09-30 19:37:13 -07:00
condvar3_1.c first commit 2013-09-30 19:37:13 -07:00
condvar3_2.c first commit 2013-09-30 19:37:13 -07:00
condvar3_3.c first commit 2013-09-30 19:37:13 -07:00
condvar4.c first commit 2013-09-30 19:37:13 -07:00
condvar5.c first commit 2013-09-30 19:37:13 -07:00
condvar6.c first commit 2013-09-30 19:37:13 -07:00
condvar7.c first commit 2013-09-30 19:37:13 -07:00
condvar8.c first commit 2013-09-30 19:37:13 -07:00
condvar9.c first commit 2013-09-30 19:37:13 -07:00
context1.c first commit 2013-09-30 19:37:13 -07:00
count1.c first commit 2013-09-30 19:37:13 -07:00
create1.c first commit 2013-09-30 19:37:13 -07:00
create2.c first commit 2013-09-30 19:37:13 -07:00
create3.c first commit 2013-09-30 19:37:13 -07:00
delay1.c first commit 2013-09-30 19:37:13 -07:00
delay2.c first commit 2013-09-30 19:37:13 -07:00
detach1.c first commit 2013-09-30 19:37:13 -07:00
equal1.c first commit 2013-09-30 19:37:13 -07:00
errno1.c first commit 2013-09-30 19:37:13 -07:00
exception1.c first commit 2013-09-30 19:37:13 -07:00
exception2.c first commit 2013-09-30 19:37:13 -07:00
exception3.c first commit 2013-09-30 19:37:13 -07:00
exit1.c first commit 2013-09-30 19:37:13 -07:00
exit2.c first commit 2013-09-30 19:37:13 -07:00
exit3.c first commit 2013-09-30 19:37:13 -07:00
exit4.c first commit 2013-09-30 19:37:13 -07:00
exit5.c first commit 2013-09-30 19:37:13 -07:00
eyal1.c first commit 2013-09-30 19:37:13 -07:00
inherit1.c first commit 2013-09-30 19:37:13 -07:00
join0.c first commit 2013-09-30 19:37:13 -07:00
join1.c first commit 2013-09-30 19:37:13 -07:00
join2.c first commit 2013-09-30 19:37:13 -07:00
join3.c first commit 2013-09-30 19:37:13 -07:00
kill1.c first commit 2013-09-30 19:37:13 -07:00
loadfree.c first commit 2013-09-30 19:37:13 -07:00
mutex1.c first commit 2013-09-30 19:37:13 -07:00
mutex1e.c first commit 2013-09-30 19:37:13 -07:00
mutex1n.c first commit 2013-09-30 19:37:13 -07:00
mutex1r.c first commit 2013-09-30 19:37:13 -07:00
mutex2.c first commit 2013-09-30 19:37:13 -07:00
mutex2e.c first commit 2013-09-30 19:37:13 -07:00
mutex2r.c first commit 2013-09-30 19:37:13 -07:00
mutex3.c first commit 2013-09-30 19:37:13 -07:00
mutex3e.c first commit 2013-09-30 19:37:13 -07:00
mutex3r.c first commit 2013-09-30 19:37:13 -07:00
mutex4.c first commit 2013-09-30 19:37:13 -07:00
mutex5.c first commit 2013-09-30 19:37:13 -07:00
mutex6.c first commit 2013-09-30 19:37:13 -07:00
mutex6e.c first commit 2013-09-30 19:37:13 -07:00
mutex6es.c first commit 2013-09-30 19:37:13 -07:00
mutex6n.c first commit 2013-09-30 19:37:13 -07:00
mutex6r.c first commit 2013-09-30 19:37:13 -07:00
mutex6rs.c first commit 2013-09-30 19:37:13 -07:00
mutex6s.c first commit 2013-09-30 19:37:13 -07:00
mutex7.c first commit 2013-09-30 19:37:13 -07:00
mutex7e.c first commit 2013-09-30 19:37:13 -07:00
mutex7n.c first commit 2013-09-30 19:37:13 -07:00
mutex7r.c first commit 2013-09-30 19:37:13 -07:00
mutex8.c first commit 2013-09-30 19:37:13 -07:00
mutex8e.c first commit 2013-09-30 19:37:13 -07:00
mutex8n.c first commit 2013-09-30 19:37:13 -07:00
mutex8r.c first commit 2013-09-30 19:37:13 -07:00
once1.c first commit 2013-09-30 19:37:13 -07:00
once2.c first commit 2013-09-30 19:37:13 -07:00
once3.c first commit 2013-09-30 19:37:13 -07:00
once4.c first commit 2013-09-30 19:37:13 -07:00
openmp1.c first commit 2013-09-30 19:37:13 -07:00
priority1.c first commit 2013-09-30 19:37:13 -07:00
priority2.c first commit 2013-09-30 19:37:13 -07:00
reuse1.c first commit 2013-09-30 19:37:13 -07:00
reuse2.c first commit 2013-09-30 19:37:13 -07:00
robust1.c first commit 2013-09-30 19:37:13 -07:00
robust2.c first commit 2013-09-30 19:37:13 -07:00
robust3.c first commit 2013-09-30 19:37:13 -07:00
robust4.c first commit 2013-09-30 19:37:13 -07:00
robust5.c first commit 2013-09-30 19:37:13 -07:00
rwlock1.c first commit 2013-09-30 19:37:13 -07:00
rwlock2.c first commit 2013-09-30 19:37:13 -07:00
rwlock2_t.c first commit 2013-09-30 19:37:13 -07:00
rwlock3.c first commit 2013-09-30 19:37:13 -07:00
rwlock3_t.c first commit 2013-09-30 19:37:13 -07:00
rwlock4.c first commit 2013-09-30 19:37:13 -07:00
rwlock4_t.c first commit 2013-09-30 19:37:13 -07:00
rwlock5.c first commit 2013-09-30 19:37:13 -07:00
rwlock5_t.c first commit 2013-09-30 19:37:13 -07:00
rwlock6.c first commit 2013-09-30 19:37:13 -07:00
rwlock6_t.c first commit 2013-09-30 19:37:13 -07:00
rwlock6_t2.c first commit 2013-09-30 19:37:13 -07:00
rwlock7.c first commit 2013-09-30 19:37:13 -07:00
rwlock8.c first commit 2013-09-30 19:37:13 -07:00
self1.c first commit 2013-09-30 19:37:13 -07:00
self2.c first commit 2013-09-30 19:37:13 -07:00
semaphore1.c first commit 2013-09-30 19:37:13 -07:00
semaphore2.c first commit 2013-09-30 19:37:13 -07:00
semaphore3.c first commit 2013-09-30 19:37:13 -07:00
semaphore4.c first commit 2013-09-30 19:37:13 -07:00
semaphore4t.c first commit 2013-09-30 19:37:13 -07:00
semaphore5.c first commit 2013-09-30 19:37:13 -07:00
sequence1.c first commit 2013-09-30 19:37:13 -07:00
sizes.c first commit 2013-09-30 19:37:13 -07:00
spin1.c first commit 2013-09-30 19:37:13 -07:00
spin2.c first commit 2013-09-30 19:37:13 -07:00
spin3.c first commit 2013-09-30 19:37:13 -07:00
spin4.c first commit 2013-09-30 19:37:13 -07:00
stress1.c first commit 2013-09-30 19:37:13 -07:00
test.h first commit 2013-09-30 19:37:13 -07:00
tryentercs.c first commit 2013-09-30 19:37:13 -07:00
tryentercs2.c first commit 2013-09-30 19:37:13 -07:00
tsd1.c first commit 2013-09-30 19:37:13 -07:00
tsd2.c first commit 2013-09-30 19:37:13 -07:00
valid1.c first commit 2013-09-30 19:37:13 -07:00
valid2.c first commit 2013-09-30 19:37:13 -07:00

README

Running test cases in this directory
------------------------------------

These make scripts expect to be able to copy the dll, library
and header files from this directory's parent directory,
which should be the pthreads-win32 source directory.

MS VC nmake
-------------

Run the target corresponding to the DLL version being tested:
 
nmake clean VC
 
or:
 
nmake clean VS


GNU GCC make
------------

Run "make clean" and then "make". See the "Known bugs" section
in ..\README.


Writing Test Cases
------------------

Tests written in this test suite should behave in the following manner:

	* If a test fails, leave main() with a result of 1.

	* If a test succeeds, leave main() with a result of 0.

	* No diagnostic output should appear when the test is succeeding.
	  Diagnostic output may be emitted if something in the test
	  fails, to help determine the cause of the test failure.

Notes:
------

Many test cases use knowledge of implementation internals which are supposed
to be opaque to portable applications.