pass regression tests on mingw

This commit is contained in:
Mathieu Lacage
2009-05-04 16:30:53 +02:00
parent b5685eb9ee
commit a269556050
6 changed files with 7 additions and 7 deletions

View File

@@ -111,7 +111,7 @@ main (int argc, char *argv[])
// and can be read by the "tcpdump -tt -r" command
CsmaHelper::EnablePcapAll ("csma-broadcast", false);
std::ofstream ascii;
ascii.open ("csma-broadcast.tr");
ascii.open ("csma-broadcast.tr", std::ios_base::binary | std::ios_base::out);
CsmaHelper::EnableAsciiAll (ascii);
NS_LOG_INFO ("Run Simulation.");

View File

@@ -166,7 +166,7 @@ main (int argc, char *argv[])
// Ascii trace output will be sent to the file "csma-multicast.tr"
//
std::ofstream ascii;
ascii.open ("csma-multicast.tr");
ascii.open ("csma-multicast.tr",std::ios_base::binary | std::ios_base::out);
CsmaHelper::EnableAsciiAll (ascii);
// Also configure some tcpdump traces; each interface will be traced.

View File

@@ -120,7 +120,7 @@ main (int argc, char *argv[])
//
NS_LOG_INFO ("Configure Tracing.");
std::ofstream ascii;
ascii.open ("csma-one-subnet.tr");
ascii.open ("csma-one-subnet.tr", std::ios_base::binary | std::ios_base::out);
CsmaHelper::EnableAsciiAll (ascii);
//
// Also configure some tcpdump traces; each interface will be traced.

View File

@@ -60,7 +60,7 @@ main (int argc, char *argv[])
CommandLine cmd;
cmd.Parse (argc, argv);
g_os.open ("csma-packet-socket-sink.tr");
g_os.open ("csma-packet-socket-sink.tr",std::ios_base::binary | std::ios_base::out);
// Here, we will explicitly create four nodes.
NS_LOG_INFO ("Create nodes.");
@@ -117,7 +117,7 @@ main (int argc, char *argv[])
// Trace output will be sent to the csma-packet-socket.tr file
NS_LOG_INFO ("Configure Tracing.");
std::ofstream os;
os.open ("csma-packet-socket.tr");
os.open ("csma-packet-socket.tr", std::ios_base::binary | std::ios_base::out);
csma.EnableAsciiAll (os);
NS_LOG_INFO ("Run Simulation.");

View File

@@ -190,7 +190,7 @@ main (int argc, char *argv[])
std::ofstream ascii;
ascii.open ("dynamic-global-routing.tr");
ascii.open ("dynamic-global-routing.tr", std::ios_base::binary | std::ios_base::out);
PointToPointHelper::EnablePcapAll ("dynamic-global-routing");
PointToPointHelper::EnableAsciiAll (ascii);
CsmaHelper::EnablePcapAll ("dynamic-global-routing", false);

View File

@@ -121,7 +121,7 @@ main (int argc, char *argv[])
apps.Stop (Seconds (10.0));
std::ofstream ascii;
ascii.open ("global-routing-slash32.tr");
ascii.open ("global-routing-slash32.tr", std::ios_base::binary | std::ios_base::out);
PointToPointHelper::EnablePcapAll ("global-routing-slash32");
PointToPointHelper::EnableAsciiAll (ascii);