mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
5f68cd8242
git-svn-id: file:///svn/toku/tokudb@18191 c7de825b-a66e-492c-adef-691d508d4ae1
29 lines
548 B
C
29 lines
548 B
C
#include <test.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <toku_assert.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
int verbose;
|
|
|
|
int test_main(int argc, char *const argv[]) {
|
|
int i;
|
|
int n = 1;
|
|
|
|
for (i=1; i<argc; i++) {
|
|
char *arg = argv[i];
|
|
if (strcmp(arg, "-v") == 0 || strcmp(arg, "--verbose") == 0)
|
|
verbose++;
|
|
n = atoi(arg);
|
|
}
|
|
|
|
for (i=0; i<1000; i++) {
|
|
if (verbose) {
|
|
printf("usleep %d\n", i); fflush(stdout);
|
|
}
|
|
usleep(n);
|
|
}
|
|
|
|
return 0;
|
|
}
|