diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/ChangeLog | 8 | ||||
| -rw-r--r-- | tests/cancel7.c | 3 | ||||
| -rw-r--r-- | tests/cancel8.c | 3 | ||||
| -rw-r--r-- | tests/exit4.c | 3 | ||||
| -rw-r--r-- | tests/exit5.c | 3 | 
5 files changed, 16 insertions, 4 deletions
| diff --git a/tests/ChangeLog b/tests/ChangeLog index 09a7b50..0a408b8 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,11 @@ +2004-09-08  Alexandre Girao  <alexgirao@gmail.com> + +	* cancel7.c (main): Win98 wants a valid (non-NULL) location +	for the last arg of _beginthreadex(). +	* cancel8.c (main): Likewise. +	* exit4.c (main): Likewise. +	* exit5.c (main): Likewise. +  2004-06-21  Ross Johnson  <rpj@callisto.canberra.edu.au>
  	* mutex2r.c: New test.
 diff --git a/tests/cancel7.c b/tests/cancel7.c index eda393b..9ad7db0 100644 --- a/tests/cancel7.c +++ b/tests/cancel7.c @@ -127,13 +127,14 @@ main()    int failed = 0;    int i;    HANDLE h[NUMTHREADS + 1]; +  unsigned thrAddr; /* Dummy variable to pass a valid location to _beginthreadex (Win98). */    for (i = 1; i <= NUMTHREADS; i++)      {        threadbag[i].started = 0;        threadbag[i].threadnum = i;  #if ! defined (__MINGW32__) || defined (__MSVCRT__) -      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, NULL); +      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, &thrAddr);  #else        h[i] = (HANDLE) _beginthread(Win32thread, 0, (void *) &threadbag[i]);  #endif diff --git a/tests/cancel8.c b/tests/cancel8.c index fa6b15c..484472e 100644 --- a/tests/cancel8.c +++ b/tests/cancel8.c @@ -128,13 +128,14 @@ main()    int failed = 0;    int i;    HANDLE h[NUMTHREADS + 1]; +  unsigned thrAddr; /* Dummy variable to pass a valid location to _beginthreadex (Win98). */    for (i = 1; i <= NUMTHREADS; i++)      {        threadbag[i].started = 0;        threadbag[i].threadnum = i;  #if ! defined (__MINGW32__) || defined (__MSVCRT__) -      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, NULL); +      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, &thrAddr);  #else        h[i] = (HANDLE) _beginthread(Win32thread, 0, (void *) &threadbag[i]);  #endif diff --git a/tests/exit4.c b/tests/exit4.c index 6c2fea1..b20dfbe 100644 --- a/tests/exit4.c +++ b/tests/exit4.c @@ -122,13 +122,14 @@ main()    int failed = 0;    int i;    HANDLE h[NUMTHREADS + 1]; +  unsigned thrAddr; /* Dummy variable to pass a valid location to _beginthreadex (Win98). */    for (i = 1; i <= NUMTHREADS; i++)      {        threadbag[i].started = 0;        threadbag[i].threadnum = i;  #if ! defined (__MINGW32__) || defined (__MSVCRT__) -      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, NULL); +      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, &thrAddr);  #else        h[i] = (HANDLE) _beginthread(Win32thread, 0, (void *) &threadbag[i]);  #endif diff --git a/tests/exit5.c b/tests/exit5.c index f554fce..e896bf4 100644 --- a/tests/exit5.c +++ b/tests/exit5.c @@ -126,13 +126,14 @@ main()    int failed = 0;    int i;    HANDLE h[NUMTHREADS + 1]; +  unsigned thrAddr; /* Dummy variable to pass a valid location to _beginthreadex (Win98). */    for (i = 1; i <= NUMTHREADS; i++)      {        threadbag[i].started = 0;        threadbag[i].threadnum = i;  #if ! defined (__MINGW32__) || defined (__MSVCRT__) -      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, NULL); +      h[i] = (HANDLE) _beginthreadex(NULL, 0, Win32thread, (void *) &threadbag[i], 0, &thrAddr);  #else        h[i] = (HANDLE) _beginthread(Win32thread, 0, (void *) &threadbag[i]);  #endif | 
