2013-04-16 23:59:01 -04:00
|
|
|
#include <test.h>
|
2013-04-16 23:57:27 -04:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2013-04-16 23:58:56 -04:00
|
|
|
#include <toku_assert.h>
|
2013-04-16 23:57:27 -04:00
|
|
|
#include <fcntl.h>
|
|
|
|
|
2013-04-16 23:59:01 -04:00
|
|
|
int test_main(int argc, char *const argv[]) {
|
2013-04-16 23:57:27 -04:00
|
|
|
int r;
|
|
|
|
int fd;
|
|
|
|
struct fileid fid;
|
|
|
|
|
|
|
|
fd = open(DEV_NULL_FILE, O_RDWR);
|
|
|
|
assert(fd != -1);
|
|
|
|
|
2013-04-16 23:57:28 -04:00
|
|
|
r = toku_os_get_unique_file_id(fd, &fid);
|
2013-04-16 23:57:27 -04:00
|
|
|
printf("%s:%d %d\n", __FILE__, __LINE__, r);
|
|
|
|
|
|
|
|
r = close(fd);
|
|
|
|
assert(r != -1);
|
|
|
|
return 0;
|
|
|
|
}
|