mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-21 09:10:36 +00:00
Add some debugging when test_hashtab_thrash fails
Disabling DEBUG_THREADS caused this test to fail on the 32-bit build agent. Adding some debugging to see why it thinks the test is timing out. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@396528 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -61,7 +61,14 @@ struct hash_test {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static int is_timed_out(struct hash_test const *data) {
|
static int is_timed_out(struct hash_test const *data) {
|
||||||
return ast_tvdiff_us(data->deadline, ast_tvnow()) < 0;
|
struct timeval now = ast_tvnow();
|
||||||
|
int val = ast_tvdiff_us(data->deadline, now) < 0;
|
||||||
|
if (val) {
|
||||||
|
printf("Now: %ld.%06ld Deadline: %ld.%06ld\n",
|
||||||
|
now.tv_sec, now.tv_usec,
|
||||||
|
data->deadline.tv_sec, data->deadline.tv_usec);
|
||||||
|
}
|
||||||
|
return val;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*! /brief Create test element */
|
/*! /brief Create test element */
|
||||||
|
|||||||
Reference in New Issue
Block a user