Merge branch 'develop' into dev/limits

This commit is contained in:
Andrew Schwartzmeyer committed 2015-11-09 09:51:06 -08:00
commit ed5e179e79
4 files changed
+10 -19

No files matched your search

+3 -4
View File
@@ -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);