pass regression tests on mingw
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Mon, 04 May 2009 16:30:53 +0200
changeset 4435 54cb46af8003
parent 4434 5e3d1c06662f
child 4437 3e4e052d5058
pass regression tests on mingw
examples/csma-broadcast.cc
examples/csma-multicast.cc
examples/csma-one-subnet.cc
examples/csma-packet-socket.cc
examples/dynamic-global-routing.cc
examples/global-routing-slash32.cc
--- a/examples/csma-broadcast.cc	Mon May 04 11:24:17 2009 +0200
+++ b/examples/csma-broadcast.cc	Mon May 04 16:30:53 2009 +0200
@@ -111,7 +111,7 @@
   // 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.");
--- a/examples/csma-multicast.cc	Mon May 04 11:24:17 2009 +0200
+++ b/examples/csma-multicast.cc	Mon May 04 16:30:53 2009 +0200
@@ -166,7 +166,7 @@
   // 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.
--- a/examples/csma-one-subnet.cc	Mon May 04 11:24:17 2009 +0200
+++ b/examples/csma-one-subnet.cc	Mon May 04 16:30:53 2009 +0200
@@ -120,7 +120,7 @@
 //
   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.
--- a/examples/csma-packet-socket.cc	Mon May 04 11:24:17 2009 +0200
+++ b/examples/csma-packet-socket.cc	Mon May 04 16:30:53 2009 +0200
@@ -60,7 +60,7 @@
   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 @@
   // 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.");
--- a/examples/dynamic-global-routing.cc	Mon May 04 11:24:17 2009 +0200
+++ b/examples/dynamic-global-routing.cc	Mon May 04 16:30:53 2009 +0200
@@ -190,7 +190,7 @@
 
 
   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);
--- a/examples/global-routing-slash32.cc	Mon May 04 11:24:17 2009 +0200
+++ b/examples/global-routing-slash32.cc	Mon May 04 16:30:53 2009 +0200
@@ -121,7 +121,7 @@
   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);