Menu

Tree [8e467a] master / tests /
 History

HTTPS access


File Date Author Commit
 Bmakefile 2018-08-06 Ross Johnson Ross Johnson [588dab] More version name and number updates
 CMakeLists.txt unknown
 ChangeLog 2023-01-30 Ross Johnson Ross Johnson [f12b44] Compile VC tests using pthread.c directly rathe...
 Debug.dsp unknown
 Debug.dsw unknown
 Debug.plg unknown
 Debug.txt unknown
 GNUmakefile.in 2018-08-06 Ross Johnson Ross Johnson [ca5279] Bump library version number; rename macro
 Makefile 2023-01-30 Ross Johnson Ross Johnson [f12b44] Compile VC tests using pthread.c directly rathe...
 README 2016-08-07 Ross Johnson Ross Johnson [e4564d] Minor edits
 README.BENCHTESTS unknown
 Wmakefile 2018-07-31 Ross Johnson Ross Johnson [40f2c5] Licence change, references to new name and repo...
 affinity1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 affinity2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 affinity3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 affinity4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 affinity5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 affinity6.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 barrier1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 barrier2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 barrier3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 barrier4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 barrier5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 barrier6.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchlib.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchtest.h 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchtest1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchtest2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchtest3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchtest4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 benchtest5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel6a.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel6d.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel7.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel8.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cancel9.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cleanup0.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cleanup1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cleanup2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 cleanup3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 common.mk 2021-08-26 rocso rocso [fd3a59] Type cast truncation warning fix;
 condvar1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar1_1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar1_2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar2_1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar3_1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar3_2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar3_3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar6.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar7.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar8.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 condvar9.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 context1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 context2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 count1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 create1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 create2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 create3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 delay1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 delay2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 detach1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 equal0.c 2018-08-10 Ross Johnson Ross Johnson [2d5e8a] New test
 equal1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 errno0.c 2018-08-07 Ross Johnson Ross Johnson [69a11d] New test
 errno1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exception1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exception2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exception3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exception3_0.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exit1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exit2.c 2021-08-26 rocso rocso [fd3a59] Type cast truncation warning fix;
 exit3.c 2021-08-26 rocso rocso [fd3a59] Type cast truncation warning fix;
 exit4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exit5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 exit6.c 2016-03-29 Ross Johnson Ross Johnson [6df9b6] Expand comment
 eyal1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 inherit1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 join0.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 join1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 join2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 join3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 join4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 kill1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex1e.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex1n.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex1r.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex2e.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex2r.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex3e.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex3r.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6e.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6es.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6n.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6r.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6rs.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex6s.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex7.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex7e.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex7n.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex7r.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex8.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex8e.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex8n.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 mutex8r.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 name_np1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 name_np2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 once1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 once2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 once3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 once4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 openmp1.c unknown
 priority1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 priority2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 reinit1.c 2018-08-07 Ross Johnson Ross Johnson [2dbbd2] Move internal stuff from pthread.h to _ptw32.h;...
 reuse1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 reuse2.c 2023-01-30 Ross Johnson Ross Johnson [f12b44] Compile VC tests using pthread.c directly rathe...
 robust1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 robust2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 robust3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 robust4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 robust5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 runorder.mk 2021-08-26 rocso rocso [fd3a59] Type cast truncation warning fix;
 rwlock1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock2_t.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock3_t.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock4_t.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock5_t.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock6.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock6_t.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 rwlock6_t2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 self1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 self2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 semaphore1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 semaphore2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 semaphore3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 semaphore4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 semaphore4t.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 semaphore5.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 sequence1.c 2021-07-22 Ross Johnson Ross Johnson [998f7c] Although PTHREAD_THREADS_MAX is a guestimate, s...
 sizes.c 2016-12-20 Ross Johnson Ross Johnson [020241] Initial version 3 commit; see the ChangeLogs
 spin1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 spin2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 spin3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 spin4.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 stress1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 test.h 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 timeouts.c 2018-08-07 Ross Johnson Ross Johnson [bbf85c] Apply latest changes from version 2.11.0
 tryentercs.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 tryentercs2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 tsd1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 tsd2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 tsd3.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 valid1.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates
 valid2.c 2018-08-06 Ross Johnson Ross Johnson [9f0a7e] Copyright dates

Read Me

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
	  unless it is particularly useful to visualise test behaviour.
	  Diagnostic output should be emitted if something in the test
	  fails, to help determine the cause of the test failure. Use assert()
	  for all API calls if possible.

Notes:
------

Many test cases use knowledge of implementation internals which are supposed
to be opaque to portable applications. These should not be used as examples
of methods that can be conformantly applied to application code.
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.