mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
bc9fd74c80
svn merge --accept=postpone -r 12123:12373 ../../mysql.branches/2.0.0/tokudb/ git-svn-id: file:///svn/toku/tokudb@12375 c7de825b-a66e-492c-adef-691d508d4ae1
29 lines
537 B
C
29 lines
537 B
C
#include <test.h>
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <assert.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
int verbose;
|
|
|
|
int test_main(int argc, char *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;
|
|
}
|