@@ -59,7 +59,7 @@ main(int argc, char *argv[])
5959strout [i ]= 'a' ;
6060
6161if ((tmpfile = open (filename ,O_RDWR |O_CREAT ,S_IRUSR |S_IWUSR ))== -1 )
62- die ("can't open/var/tmp/test_fsync.out " );
62+ die ("Cannot openoutput file. " );
6363write (tmpfile ,strout ,WAL_FILE_SIZE );
6464fsync (tmpfile );/* fsync so later fsync's don't have to do it */
6565close (tmpfile );
@@ -70,7 +70,7 @@ main(int argc, char *argv[])
7070for (i = 0 ;i < loops ;i ++ )
7171{
7272if ((tmpfile = open (filename ,O_RDWR ))== -1 )
73- die ("can't open/var/tmp/test_fsync.out " );
73+ die ("Cannot openoutput file. " );
7474write (tmpfile ,strout ,8192 );
7575close (tmpfile );
7676}
@@ -87,12 +87,12 @@ main(int argc, char *argv[])
8787for (i = 0 ;i < loops ;i ++ )
8888{
8989if ((tmpfile = open (filename ,O_RDWR ))== -1 )
90- die ("can't open/var/tmp/test_fsync.out " );
90+ die ("Cannot openoutput file. " );
9191write (tmpfile ,strout ,8192 );
9292fsync (tmpfile );
9393close (tmpfile );
9494if ((tmpfile = open (filename ,O_RDWR ))== -1 )
95- die ("can't open/var/tmp/test_fsync.out " );
95+ die ("Cannot openoutput file. " );
9696/* do nothing but the open/close the tests are consistent. */
9797close (tmpfile );
9898}
@@ -106,12 +106,12 @@ main(int argc, char *argv[])
106106for (i = 0 ;i < loops ;i ++ )
107107{
108108if ((tmpfile = open (filename ,O_RDWR ))== -1 )
109- die ("can't open/var/tmp/test_fsync.out " );
109+ die ("Cannot openoutput file. " );
110110write (tmpfile ,strout ,8192 );
111111close (tmpfile );
112112/* reopen file */
113113if ((tmpfile = open (filename ,O_RDWR ))== -1 )
114- die ("can't open/var/tmp/test_fsync.out " );
114+ die ("Cannot openoutput file. " );
115115fsync (tmpfile );
116116close (tmpfile );
117117}
@@ -124,7 +124,7 @@ main(int argc, char *argv[])
124124
125125/* 16k o_sync write */
126126if ((tmpfile = open (filename ,O_RDWR |OPEN_SYNC_FLAG ))== -1 )
127- die ("can't open/var/tmp/test_fsync.out " );
127+ die ("Cannot openoutput file. " );
128128gettimeofday (& start_t ,NULL );
129129for (i = 0 ;i < loops ;i ++ )
130130write (tmpfile ,strout ,16384 );
@@ -136,7 +136,7 @@ main(int argc, char *argv[])
136136
137137/* 2*8k o_sync writes */
138138if ((tmpfile = open (filename ,O_RDWR |OPEN_SYNC_FLAG ))== -1 )
139- die ("can't open/var/tmp/test_fsync.out " );
139+ die ("Cannot openoutput file. " );
140140gettimeofday (& start_t ,NULL );
141141for (i = 0 ;i < loops ;i ++ )
142142{
@@ -154,7 +154,7 @@ main(int argc, char *argv[])
154154#ifdef OPEN_DATASYNC_FLAG
155155/* open_dsync, write */
156156if ((tmpfile = open (filename ,O_RDWR |O_DSYNC ))== -1 )
157- die ("can't open/var/tmp/test_fsync.out " );
157+ die ("Cannot openoutput file. " );
158158gettimeofday (& start_t ,NULL );
159159for (i = 0 ;i < loops ;i ++ )
160160write (tmpfile ,strout ,8192 );
@@ -169,7 +169,7 @@ main(int argc, char *argv[])
169169
170170/* open_fsync, write */
171171if ((tmpfile = open (filename ,O_RDWR |OPEN_SYNC_FLAG ))== -1 )
172- die ("can't open/var/tmp/test_fsync.out " );
172+ die ("Cannot openoutput file. " );
173173gettimeofday (& start_t ,NULL );
174174for (i = 0 ;i < loops ;i ++ )
175175write (tmpfile ,strout ,8192 );
@@ -182,7 +182,7 @@ main(int argc, char *argv[])
182182#ifdef HAVE_FDATASYNC
183183/* write, fdatasync */
184184if ((tmpfile = open (filename ,O_RDWR ))== -1 )
185- die ("can't open/var/tmp/test_fsync.out " );
185+ die ("Cannot openoutput file. " );
186186gettimeofday (& start_t ,NULL );
187187for (i = 0 ;i < loops ;i ++ )
188188{
@@ -200,7 +200,7 @@ main(int argc, char *argv[])
200200
201201/* write, fsync, close */
202202if ((tmpfile = open (filename ,O_RDWR ))== -1 )
203- die ("can't open/var/tmp/test_fsync.out " );
203+ die ("Cannot openoutput file. " );
204204gettimeofday (& start_t ,NULL );
205205for (i = 0 ;i < loops ;i ++ )
206206{
@@ -218,7 +218,7 @@ main(int argc, char *argv[])
218218#ifdef OPEN_DATASYNC_FLAG
219219/* open_dsync, write */
220220if ((tmpfile = open (filename ,O_RDWR |O_DSYNC ))== -1 )
221- die ("can't open/var/tmp/test_fsync.out " );
221+ die ("Cannot openoutput file. " );
222222gettimeofday (& start_t ,NULL );
223223for (i = 0 ;i < loops ;i ++ )
224224{
@@ -236,7 +236,7 @@ main(int argc, char *argv[])
236236
237237/* open_fsync, write */
238238if ((tmpfile = open (filename ,O_RDWR |OPEN_SYNC_FLAG ))== -1 )
239- die ("can't open/var/tmp/test_fsync.out " );
239+ die ("Cannot openoutput file. " );
240240gettimeofday (& start_t ,NULL );
241241for (i = 0 ;i < loops ;i ++ )
242242{
@@ -252,7 +252,7 @@ main(int argc, char *argv[])
252252#ifdef HAVE_FDATASYNC
253253/* write, fdatasync */
254254if ((tmpfile = open (filename ,O_RDWR ))== -1 )
255- die ("can't open/var/tmp/test_fsync.out " );
255+ die ("Cannot openoutput file. " );
256256gettimeofday (& start_t ,NULL );
257257for (i = 0 ;i < loops ;i ++ )
258258{
@@ -271,7 +271,7 @@ main(int argc, char *argv[])
271271
272272/* write, fsync, close */
273273if ((tmpfile = open (filename ,O_RDWR ))== -1 )
274- die ("can't open/var/tmp/test_fsync.out " );
274+ die ("Cannot openoutput file. " );
275275gettimeofday (& start_t ,NULL );
276276for (i = 0 ;i < loops ;i ++ )
277277{
@@ -306,6 +306,6 @@ print_elapse(struct timeval start_t, struct timeval elapse_t)
306306void
307307die (char * str )
308308{
309- fprintf (stderr ,"%s" ,str );
309+ fprintf (stderr ,"%s\n " ,str );
310310exit (1 );
311311}