diff options
author | rpj <rpj> | 2005-05-15 15:28:24 +0000 |
---|---|---|
committer | rpj <rpj> | 2005-05-15 15:28:24 +0000 |
commit | 46ae637c4ef03a921d4a06baf99219c6149a7d20 (patch) | |
tree | ca25c87f4285954f598d6f9b11b906d74b24750d /tests | |
parent | d4a22be21479c3b52e0ba2d3cfb150a98c426422 (diff) |
''
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Bmakefile | 5 | ||||
-rw-r--r-- | tests/ChangeLog | 10 | ||||
-rw-r--r-- | tests/GNUmakefile | 8 | ||||
-rw-r--r-- | tests/Makefile | 10 | ||||
-rw-r--r-- | tests/Wmakefile | 7 | ||||
-rw-r--r-- | tests/create3.c | 2 | ||||
-rw-r--r-- | tests/join0.c | 5 | ||||
-rw-r--r-- | tests/join1.c | 9 | ||||
-rw-r--r-- | tests/join2.c | 4 | ||||
-rw-r--r-- | tests/join3.c | 4 |
10 files changed, 30 insertions, 34 deletions
diff --git a/tests/Bmakefile b/tests/Bmakefile index 81b79db..682e956 100644 --- a/tests/Bmakefile +++ b/tests/Bmakefile @@ -86,7 +86,7 @@ PASSES= loadfree.pass \ exit1.pass create1.pass create2.pass reuse1.pass reuse2.pass equal1.pass \ kill1.pass valid1.pass valid2.pass \ exit2.pass exit3.pass exit4.pass exit5.pass \ - join0.pass join1.pass join2.pass join3.pass \ + join0.pass join1.pass detach1.pass join2.pass join3.pass \ mutex4.pass mutex6.pass mutex6n.pass mutex6e.pass mutex6r.pass \ mutex6s.pass mutex6es.pass mutex6rs.pass \ mutex7.pass mutex7n.pass mutex7e.pass mutex7r.pass \ @@ -261,6 +261,7 @@ create2.pass: create1.pass create3.pass: delay1.pass: delay2.pass: delay1.pass +detach1.pass: join0.pass equal1.pass: create1.pass errno1.pass: mutex3.pass exception1.pass: cancel4.pass @@ -340,7 +341,7 @@ spin1.pass: spin2.pass: spin1.pass spin3.pass: spin2.pass spin4.pass: spin3.pass -stress1.pass: barrier5.pass +stress1.pass: tsd1.pass: barrier5.pass join1.pass tsd2.pass: tsd1.pass valid1.pass: join1.pass diff --git a/tests/ChangeLog b/tests/ChangeLog index 3cd189f..bbd29f7 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,13 @@ +2005-05-15 Ross Johnson <rpj@callisto.canberra.edu.au> + + * detach1.c: New test. + * join1.c: Reduce sleep times. + * join0.c: Remove MSVCRT conditional compile - join should always + return the thread exit code. + * join1.c: Likewise. + * join2.c: Likewise. + * join3.c: Likewise. + 2005-04-18 Ross Johnson <rpj@callisto.canberra.edu.au> * condvar3.c: Remove locks from around signalling calls - should not diff --git a/tests/GNUmakefile b/tests/GNUmakefile index 806a82c..fb28a53 100644 --- a/tests/GNUmakefile +++ b/tests/GNUmakefile @@ -81,7 +81,7 @@ TESTS = sizes loadfree \ create1 create2 reuse1 reuse2 equal1 \ kill1 valid1 valid2 \ exit2 exit3 exit4 exit5 \ - join0 join1 join2 join3 \ + join0 join1 detach1 join2 join3 \ mutex2 mutex2r mutex2e mutex3 mutex3r mutex3e \ mutex4 mutex6 mutex6n mutex6e mutex6r \ mutex6s mutex6es mutex6rs \ @@ -102,7 +102,7 @@ TESTS = sizes loadfree \ priority1 priority2 inherit1 \ spin1 spin2 spin3 spin4 \ exception1 exception2 exception3 \ - cancel9 create3 + cancel9 create3 stress1 STRESSTESTS = \ stress1 @@ -184,8 +184,6 @@ benchtest3.bench: benchtest4.bench: benchtest5.bench: -stress1.pass: - barrier1.pass: semaphore4.pass barrier2.pass: barrier1.pass barrier3.pass: barrier2.pass @@ -228,6 +226,7 @@ create2.pass: create1.pass create3.pass: delay1.pass: cancel2.pass delay2.pass: delay1.pass +detach1.pass: join0.pass equal1.pass: create1.pass errno1.pass: mutex3.pass exception1.pass: cancel4.pass @@ -307,6 +306,7 @@ spin1.pass: spin2.pass: spin1.pass spin3.pass: spin2.pass spin4.pass: spin3.pass +stress1.pass: tsd1.pass: barrier5.pass join1.pass tsd2.pass: tsd1.pass valid1.pass: join1.pass diff --git a/tests/Makefile b/tests/Makefile index 8c5c937..6dc222e 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -90,7 +90,7 @@ PASSES= sizes.pass loadfree.pass \ exit1.pass create1.pass create2.pass reuse1.pass reuse2.pass equal1.pass \ kill1.pass valid1.pass valid2.pass \ exit2.pass exit3.pass exit4.pass exit5.pass \ - join0.pass join1.pass join2.pass join3.pass \ + join0.pass join1.pass detach1.pass join2.pass join3.pass \ mutex4.pass mutex6.pass mutex6n.pass mutex6e.pass mutex6r.pass \ mutex6s.pass mutex6es.pass mutex6rs.pass \ mutex7.pass mutex7n.pass mutex7e.pass mutex7r.pass \ @@ -115,13 +115,13 @@ PASSES= sizes.pass loadfree.pass \ priority1.pass priority2.pass inherit1.pass \ spin1.pass spin2.pass spin3.pass spin4.pass \ exception1.pass exception2.pass exception3.pass \ - cancel9.pass create3.pass + cancel9.pass create3.pass stress1.pass BENCHRESULTS = \ benchtest1.bench benchtest2.bench benchtest3.bench benchtest4.bench benchtest5.bench STRESSRESULTS = \ - stress1.pass + stress1.stress STATICRESULTS = \ self1.pass @@ -274,8 +274,6 @@ benchtest3.bench: benchtest4.bench: benchtest5.bench: -stress1.pass: - barrier1.pass: semaphore4.pass barrier2.pass: barrier1.pass barrier3.pass: barrier2.pass @@ -317,6 +315,7 @@ create2.pass: create1.pass create3.pass: delay1.pass: delay2.pass: delay1.pass +detach1.pass: join0.pass equal1.pass: create1.pass errno1.pass: mutex3.pass exception1.pass: cancel4.pass @@ -396,6 +395,7 @@ spin1.pass: spin2.pass: spin1.pass spin3.pass: spin2.pass spin4.pass: spin3.pass +stress1.pass: condvar9.pass barrier5.pass tsd1.pass: barrier5.pass join1.pass tsd2.pass: tsd1.pass valid1.pass: join1.pass diff --git a/tests/Wmakefile b/tests/Wmakefile index 4f003df..fa11dc5 100644 --- a/tests/Wmakefile +++ b/tests/Wmakefile @@ -86,7 +86,7 @@ PASSES = sizes.pass loadfree.pass & exit1.pass create1.pass create2.pass reuse1.pass reuse2.pass equal1.pass & kill1.pass valid1.pass valid2.pass & exit2.pass exit3.pass exit4 exit5 & - join0.pass join1.pass join2.pass join3.pass & + join0.pass join1.pass detach1.pass join2.pass join3.pass & mutex4.pass mutex6.pass mutex6n.pass mutex6e.pass mutex6r.pass & mutex6s.pass mutex6es.pass mutex6rs.pass & mutex7.pass mutex7n.pass mutex7e.pass mutex7r.pass & @@ -111,7 +111,7 @@ PASSES = sizes.pass loadfree.pass & spin1.pass spin2.pass spin3.pass spin4.pass & barrier1.pass barrier2.pass barrier3.pass barrier4.pass barrier5.pass & exception1.pass exception2.pass exception3.pass & - cancel9.pass + cancel9.pass create3.pass stress1.pass BENCHRESULTS = & benchtest1.bench benchtest2.bench benchtest3.bench benchtest4.bench benchtest5.bench @@ -255,8 +255,10 @@ context1.pass: cancel2.pass count1.pass: join1.pass create1.pass: mutex2.pass create2.pass: create1.pass +create3.pass: delay1.pass: delay2.pass: delay1.pass +detach1.pass: join0.pass equal1.pass: create1.pass errno1.pass: mutex3.pass exception1.pass: cancel4.pass @@ -335,6 +337,7 @@ spin1.pass: spin2.pass: spin1.pass spin3.pass: spin2.pass spin4.pass: spin3.pass +stress1.pass: tsd1.pass: join1.pass valid1.pass: join1.pass valid2.pass: valid1.pass diff --git a/tests/create3.c b/tests/create3.c index 530a2f1..98bd520 100644 --- a/tests/create3.c +++ b/tests/create3.c @@ -92,7 +92,7 @@ threadFunc(void * arg) } int -main(int argc, char argv[]) +main(int argc, char * argv[]) { int i; pthread_t mt; diff --git a/tests/join0.c b/tests/join0.c index bece19c..a6cb25d 100644 --- a/tests/join0.c +++ b/tests/join0.c @@ -60,12 +60,7 @@ main(int argc, char * argv[]) assert(pthread_join(id, (void **) &result) == 0); -#if ! defined (__MINGW32__) || defined (__MSVCRT__) assert(result == 123); -#else -# warning pthread_join not fully supported in this configuration. - assert(result == 0); -#endif /* Success. */ return 0; diff --git a/tests/join1.c b/tests/join1.c index 8f52ae7..8b11e95 100644 --- a/tests/join1.c +++ b/tests/join1.c @@ -43,7 +43,7 @@ func(void * arg) { int i = (int) arg; - Sleep(i * 500); + Sleep(i * 100); pthread_exit(arg); @@ -65,17 +65,12 @@ main(int argc, char * argv[]) } /* Some threads will finish before they are joined, some after. */ - Sleep(1000); + Sleep(2 * 100 + 50); for (i = 0; i < 4; i++) { assert(pthread_join(id[i], (void **) &result) == 0); -#if ! defined (__MINGW32__) || defined (__MSVCRT__) assert(result == i); -#else -# warning pthread_join not fully supported in this configuration. - assert(result == 0); -#endif } /* Success. */ diff --git a/tests/join2.c b/tests/join2.c index 89a3633..4fa3012 100644 --- a/tests/join2.c +++ b/tests/join2.c @@ -61,11 +61,7 @@ main(int argc, char * argv[]) for (i = 0; i < 4; i++) { assert(pthread_join(id[i], (void **) &result) == 0); -#if ! defined (__MINGW32__) || defined (__MSVCRT__) - /* CRTDLL _beginthread doesn't support return value, so - the assertion is guaranteed to fail. */ assert(result == i); -#endif } /* Success. */ diff --git a/tests/join3.c b/tests/join3.c index ccc13dd..70cf3e9 100644 --- a/tests/join3.c +++ b/tests/join3.c @@ -67,11 +67,7 @@ main(int argc, char * argv[]) for (i = 0; i < 4; i++) { assert(pthread_join(id[i], (void **) &result) == 0); -#if ! defined (__MINGW32__) || defined (__MSVCRT__) - /* CRTDLL _beginthread doesn't support return value, so - the assertion is guaranteed to fail. */ assert(result == i); -#endif } /* Success. */ |