Fix build under OpenVMS where mkdtemp() is unavailable
Just skip the part of the test using this function under OpenVMS. Closes #22158.
This commit is contained in:
parent
1d585eef05
commit
6c9d1291f6
1 changed files with 2 additions and 1 deletions
|
|
@ -712,6 +712,8 @@ TEST_CASE("wxFileName::Exists", "[filename]")
|
|||
// No need for wxFILE_EXISTS_NO_FOLLOW here; wxFILE_EXISTS_SYMLINK implies it
|
||||
CHECK( wxFileName::Exists("/proc/self", wxFILE_EXISTS_SYMLINK) );
|
||||
#endif // __LINUX__
|
||||
#ifndef __VMS
|
||||
// OpenVMS does not have mkdtemp
|
||||
wxString name = dirTemp.GetPath() + "/socktmpdirXXXXXX";
|
||||
wxString socktempdir = wxString::From8BitData(mkdtemp(name.char_str()));
|
||||
wxON_BLOCK_EXIT2(wxRmdir, socktempdir, 0);
|
||||
|
|
@ -719,7 +721,6 @@ TEST_CASE("wxFileName::Exists", "[filename]")
|
|||
wxTCPServer server;
|
||||
server.Create(sockfile);
|
||||
CHECK( wxFileName::Exists(sockfile, wxFILE_EXISTS_SOCKET) );
|
||||
#ifndef __VMS
|
||||
wxString fifo = dirTemp.GetPath() + "/fifo";
|
||||
if (mkfifo(fifo.c_str(), 0600) == 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue