mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Merge branch 'develop' into dev/limits
This commit is contained in:
commit
ed5e179e79
4 files changed
+10
-19
No files matched your search
@@ -10,13 +10,12 @@ class GetComputerNameTest : public ::testing::Test
|
||||
{
|
||||
};
|
||||
|
||||
TEST_F(GetComputerNameTest, ValidateLinuxGetHostnameSystemCall)
|
||||
TEST_F(GetComputerNameTest, Success)
|
||||
{
|
||||
char expectedComputerName[HOST_NAME_MAX];
|
||||
|
||||
//Get expected result from using linux command
|
||||
|
||||
FILE *fPtr = popen("hostname -s", "r");
|
||||
// the gethostname system call gets the nodename from uname
|
||||
FILE *fPtr = popen("uname -n", "r");
|
||||
ASSERT_TRUE(fPtr != NULL);
|
||||
|
||||
char *linePtr = fgets(expectedComputerName, sizeof(expectedComputerName), fPtr);
|
||||
|
||||
Reference in new issue
Block a user