mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-19 16:50:46 +08:00
[svn-r9780] Purpose:
Bug fix Description: Print the thread ID in a little more portable of a fashion, disallowing negative thread IDs. Platforms tested: Linux 2.4 (heping) w/threadsafe Too Minor to require h5committest
This commit is contained in:
parent
3e582deaae
commit
0977cfecd9
@ -2193,7 +2193,7 @@ H5E_walk_cb(unsigned n, const H5E_error_t *err_desc, void *client_data)
|
||||
fprintf (stream, "thread 0");
|
||||
}
|
||||
#elif defined(H5_HAVE_THREADSAFE)
|
||||
fprintf (stream, "thread %d", (int)pthread_self());
|
||||
fprintf (stream, "thread %lu", (unsigned long)pthread_self());
|
||||
#else
|
||||
fprintf (stream, "thread 0");
|
||||
#endif
|
||||
|
@ -55,7 +55,7 @@ TEST() {
|
||||
shift
|
||||
|
||||
# Run test.
|
||||
TESTING $1
|
||||
TESTING $TEST_ERR
|
||||
(
|
||||
echo "#############################"
|
||||
echo "Expected output for $TEST_ERR"
|
||||
|
Loading…
x
Reference in New Issue
Block a user