]> The Tcpdump Group git mirrors - tcpdump/blobdiff - tests/TESTonce
condition DOS/UNIX newline styles for Windows test
[tcpdump] / tests / TESTonce
index 7e55d24a9e9b719992270fa876b5f6f8aabbab2e..fc6931e81ef7c1e9a8512cbaf2f40fe8d6b3dfd0 100755 (executable)
@@ -13,8 +13,8 @@ $output=$ARGV[2];
 $options=$ARGV[3];
 
 if ($^O eq 'MSWin32') {
-  $r = system "..\\windump -n -r $input $options 2>NUL | tee NEW/$output | diff $output - >DIFF/$output.diff";
- }
+  $r = system "..\\windump -n -r $input $options 2>NUL | sed 's/\\r//' | tee NEW/$output | diff $output - >DIFF/$output.diff";
+}
 else {
   $r = system "../tcpdump 2>/dev/null -n -r $input $options | tee NEW/$output | diff $output - >DIFF/$output.diff";
 }