Commit f185f0a4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't set the VAS handler until the test-executing child process.

parent cace2d5b
......@@ -55,19 +55,6 @@ static double t0;
/**********************************************************************/
void
vtc_loginit(char *buf, unsigned buflen)
{
t0 = VTIM_mono();
vtclog_buf = buf;
vtclog_left = buflen;
AZ(pthread_mutex_init(&vtclog_mtx, NULL));
AZ(pthread_key_create(&log_key, NULL));
}
/**********************************************************************/
struct vtclog *
vtc_logopen(const char *id)
......@@ -305,4 +292,17 @@ vtc_log_VAS_Fail(const char *func, const char *file, int line,
abort();
}
vas_f *VAS_Fail __attribute__((__noreturn__)) = vtc_log_VAS_Fail;
/**********************************************************************/
void
vtc_loginit(char *buf, unsigned buflen)
{
VAS_Fail = vtc_log_VAS_Fail;
t0 = VTIM_mono();
vtclog_buf = buf;
vtclog_left = buflen;
AZ(pthread_mutex_init(&vtclog_mtx, NULL));
AZ(pthread_key_create(&log_key, NULL));
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment