mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: deprecate domainName and full hostName (#2280)
- unused in regular OpenFOAM code - POSIX version uses deprecated gethostbyname() - Windows version never worked COMP: localize, noexcept on internal OSspecific methods STYLE: support fileName::Type SYMLINK and LINK as synonyms
This commit is contained in:
@ -633,10 +633,10 @@ int main(int argc, char *argv[])
|
||||
|
||||
fileName::Type lnAType = lnA.type(false);
|
||||
|
||||
if (lnAType != fileName::LINK)
|
||||
if (lnAType != fileName::SYMLINK)
|
||||
{
|
||||
FatalErrorIn("Test-fileName") << "Type of softlink " << lnA
|
||||
<< " should be " << fileName::LINK
|
||||
<< " should be " << fileName::SYMLINK
|
||||
<< " but is " << lnAType << exit(FatalError);
|
||||
}
|
||||
|
||||
@ -655,10 +655,10 @@ int main(int argc, char *argv[])
|
||||
<< endl;
|
||||
|
||||
Foam::cp(lnA, lnB, false);
|
||||
if (lnB.type(false) != fileName::LINK)
|
||||
if (lnB.type(false) != fileName::SYMLINK)
|
||||
{
|
||||
FatalErrorIn("Test-fileName") << "Type of softlink " << lnB
|
||||
<< " should be " << fileName::LINK
|
||||
<< " should be " << fileName::SYMLINK
|
||||
<< " but is " << lnB.type(false) << exit(FatalError);
|
||||
}
|
||||
if (lnB.type(true) != fileName::DIRECTORY)
|
||||
|
||||
Reference in New Issue
Block a user