Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e5e17ca4
Commit
e5e17ca4
authored
Dec 06, 2009
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 07, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt/tests: Free temporary file name after test.
parent
1cc0dd5c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
file.c
dlls/msvcrt/tests/file.c
+9
-0
No files found.
dlls/msvcrt/tests/file.c
View file @
e5e17ca4
...
...
@@ -439,6 +439,7 @@ static void test_fgetc( void )
ok
(
ich
==
ret
,
"Second fgetc expected %x got %x
\n
"
,
ich
,
ret
);
fclose
(
tempfh
);
unlink
(
tempf
);
free
(
tempf
);
}
static
void
test_fputc
(
void
)
...
...
@@ -463,6 +464,7 @@ static void test_fputc( void )
fclose
(
tempfh
);
unlink
(
tempf
);
free
(
tempf
);
}
static
void
test_flsbuf
(
void
)
...
...
@@ -517,6 +519,7 @@ static void test_flsbuf( void )
fclose
(
tempfh
);
unlink
(
tempf
);
free
(
tempf
);
}
static
void
test_fgetwc
(
void
)
...
...
@@ -634,6 +637,7 @@ static void test_fgetwc( void )
free
(
mytextW
);
fclose
(
tempfh
);
unlink
(
tempf
);
free
(
tempf
);
}
static
void
test_ctrlz
(
void
)
...
...
@@ -681,6 +685,7 @@ static void test_ctrlz( void )
ok
(
feof
(
tempfh
),
"did not get EOF
\n
"
);
fclose
(
tempfh
);
unlink
(
tempf
);
free
(
tempf
);
}
static
void
test_file_put_get
(
void
)
...
...
@@ -730,6 +735,7 @@ static void test_file_put_get( void )
free
(
mytextW
);
fclose
(
tempfh
);
unlink
(
tempf
);
free
(
tempf
);
}
static
void
test_file_write_read
(
void
)
...
...
@@ -806,6 +812,7 @@ static void test_file_write_read( void )
ret
=
unlink
(
tempf
);
ok
(
ret
==
0
,
"Can't unlink '%s': %d
\n
"
,
tempf
,
errno
);
free
(
tempf
);
tempf
=
_tempnam
(
"."
,
"wne"
);
tempfd
=
_open
(
tempf
,
_O_CREAT
|
_O_TRUNC
|
_O_BINARY
|
_O_RDWR
,
0
);
...
...
@@ -833,6 +840,7 @@ static void test_file_write_read( void )
"Can't chmod '%s' to read-write: %d
\n
"
,
tempf
,
errno
);
ret
=
unlink
(
tempf
);
ok
(
ret
==
0
,
"Can't unlink '%s': %d
\n
"
,
tempf
,
errno
);
free
(
tempf
);
}
static
void
test_file_inherit_child
(
const
char
*
fd_s
)
...
...
@@ -1080,6 +1088,7 @@ static void test_chsize( void )
_close
(
fd
);
_unlink
(
tempfile
);
free
(
tempfile
);
}
static
void
test_fopen_fclose_fcloseall
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment