mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Added failure casex
This commit is contained in:
@@ -24,4 +24,13 @@ TEST(GetComputerName,simple)
|
||||
ASSERT_TRUE(getComputerName == TRUE);
|
||||
ASSERT_EQ(host,TRUE);
|
||||
ASSERT_EQ(hostnameString,hostnameStringTest);
|
||||
}
|
||||
|
||||
TEST(GetComputerName,buffertosmall)
|
||||
{
|
||||
char hostname[HOST_NAME_MAX];
|
||||
std::string hostnameFunctionTest;
|
||||
DWORD hostSize = 0;
|
||||
BOOL getComputerName = GetComputerName(&hostnameFunctionTest[0], &hostSize);
|
||||
ASSERT_TRUE(getComputerName != 0);
|
||||
}
|
||||
Reference in New Issue
Block a user