Replace NS_LOG_ERROR and exit(1) with NS_FATAL_ERROR in ht-wifi-network example

This commit is contained in:
Alexander Krotov
2018-10-29 16:00:09 +03:00
parent a76867cf4d
commit fdc275f3ad

View File

@@ -262,8 +262,7 @@ int main (int argc, char *argv[])
{
if (throughput < minExpectedThroughput)
{
NS_LOG_ERROR ("Obtained throughput " << throughput << " is not expected!");
exit (1);
NS_FATAL_ERROR ("Obtained throughput " << throughput << " is not expected!");
}
}
//test last element
@@ -271,8 +270,7 @@ int main (int argc, char *argv[])
{
if (maxExpectedThroughput > 0 && throughput > maxExpectedThroughput)
{
NS_LOG_ERROR ("Obtained throughput " << throughput << " is not expected!");
exit (1);
NS_FATAL_ERROR ("Obtained throughput " << throughput << " is not expected!");
}
}
//test previous throughput is smaller (for the same mcs)
@@ -282,8 +280,7 @@ int main (int argc, char *argv[])
}
else
{
NS_LOG_ERROR ("Obtained throughput " << throughput << " is not expected!");
exit (1);
NS_FATAL_ERROR ("Obtained throughput " << throughput << " is not expected!");
}
//test previous throughput is smaller (for the same channel width and GI)
if (throughput > prevThroughput [index])
@@ -292,8 +289,7 @@ int main (int argc, char *argv[])
}
else
{
NS_LOG_ERROR ("Obtained throughput " << throughput << " is not expected!");
exit (1);
NS_FATAL_ERROR ("Obtained throughput " << throughput << " is not expected!");
}
index++;