Set timeout on testcase to avoid killing

This commit is contained in:
Erik Ekman
2007-01-28 02:50:59 +00:00
parent 981204682f
commit 7368bcaff7
2 changed files with 5 additions and 6 deletions

View File

@@ -18,6 +18,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include "test.h"
@@ -27,6 +28,7 @@ va_str(const char *fmt, ...)
static char buf[512];
va_list ap;
memset(buf, 0, sizeof(buf));
va_start(ap, fmt);
vsnprintf(buf, sizeof(buf), fmt, ap);
va_end(ap);