mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
dab780fdbd
svn merge --accept=postpone -r 10895:10898 ../tokudb.main+1510 Previously on tokudb.main+1510: svn merge --accept=postpone -r 10317:10892 ../tokudb.1510 git-svn-id: file:///svn/toku/tokudb@10899 c7de825b-a66e-492c-adef-691d508d4ae1
19 lines
542 B
C
19 lines
542 B
C
/* -*- mode: C; c-basic-offset: 4 -*- */
|
|
#ident "Copyright (c) 2007, 2008 Tokutek Inc. All rights reserved."
|
|
|
|
#include "test.h"
|
|
|
|
#include "includes.h"
|
|
|
|
#define fname __FILE__ ".tmp"
|
|
|
|
int
|
|
test_main (int argc __attribute__((__unused__)), const char *argv[] __attribute__((__unused__))) {
|
|
unlink(fname);
|
|
int fd0 = open (fname, O_RDWR|O_CREAT|O_EXCL, S_IRWXU|S_IRWXG|S_IRWXO);
|
|
assert(fd0>=0);
|
|
int fd1 = open (fname, O_RDWR|O_CREAT|O_EXCL, S_IRWXU|S_IRWXG|S_IRWXO);
|
|
assert(fd1==-1);
|
|
assert(errno==EEXIST);
|
|
return 0;
|
|
}
|