mariadb/linux/tests/test-xid.c

17 lines
311 B
C
Raw Normal View History

#include <stdio.h>
#include <toku_stdint.h>
#include <unistd.h>
#include <toku_assert.h>
#include "toku_os.h"
#include <syscall.h>
static int gettid(void) {
return syscall(__NR_gettid);
}
int main(void) {
assert(toku_os_getpid() == getpid());
assert(toku_os_gettid() == gettid());
return 0;
}