Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
fac7e78a
Commit
fac7e78a
authored
Oct 24, 2003
by
Pavel Roskin
Committed by
Alexandre Julliard
Oct 24, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added test for tmpnam().
parent
9661d05b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
file.c
dlls/msvcrt/tests/file.c
+21
-0
No files found.
dlls/msvcrt/tests/file.c
View file @
fac7e78a
...
...
@@ -216,6 +216,26 @@ static void test_file_write_read( void )
unlink
(
tempf
);
}
static
void
test_tmpnam
(
void
)
{
char
name
[
MAX_PATH
]
=
"abc"
;
char
*
res
;
res
=
tmpnam
(
NULL
);
ok
(
res
!=
NULL
,
"tmpnam returned NULL"
);
ok
(
res
[
0
]
==
'\\'
,
"first character is not a backslash"
);
ok
(
strchr
(
res
+
1
,
'\\'
)
==
0
,
"file not in the root directory"
);
ok
(
res
[
strlen
(
res
)
-
1
]
==
'.'
,
"first call - last character is not a dot"
);
res
=
tmpnam
(
name
);
ok
(
res
!=
NULL
,
"tmpnam returned NULL"
);
ok
(
res
==
name
,
"supplied buffer was not used"
);
ok
(
res
[
0
]
==
'\\'
,
"first character is not a backslash"
);
ok
(
strchr
(
res
+
1
,
'\\'
)
==
0
,
"file not in the root directory"
);
ok
(
res
[
strlen
(
res
)
-
1
]
!=
'.'
,
"second call - last character is not a dot"
);
}
START_TEST
(
file
)
{
...
...
@@ -224,4 +244,5 @@ START_TEST(file)
test_fgetwc
();
test_file_put_get
();
test_file_write_read
();
test_tmpnam
();
}
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