Fix Nulgrind's filter_stderr, and also fix the none/tests/cmdline2 test
(required fixing the usage msg slightly).



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3278 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_main.c b/coregrind/vg_main.c
index 3048e8d..3776954 100644
--- a/coregrind/vg_main.c
+++ b/coregrind/vg_main.c
@@ -1512,14 +1512,14 @@
 "    --trace-symtab=no|yes     show symbol table details? [no]\n"
 "    --trace-sched=no|yes      show thread scheduler details? [no]\n"
 "    --wait-for-gdb=yes|no     pause on startup to wait for gdb attach\n"
-"\n"
-"    --vex-iropt-verbosity             0 .. 9 [0]\n"
-"    --vex-iropt-level                 0 .. 2 [2]\n"
-"    --vex-iropt-precise-memory-exns   [no]\n"
 #if 0
 "    --model-pthreads=yes|no   model the pthreads library [no]\n"
 #endif
 "    --command-line-only=no|yes  only use command line options [no]\n"
+"\n"
+"    --vex-iropt-verbosity             0 .. 9 [0]\n"
+"    --vex-iropt-level                 0 .. 2 [2]\n"
+"    --vex-iropt-precise-memory-exns   [no]\n"
 "    --vex-iropt-unroll-thresh         0 .. 400 [120]\n"
 "    --vex-guest-max-insns             1 .. 100 [50]\n"
 "    --vex-guest-chase-thresh          0 .. 99  [10]\n"
diff --git a/none/tests/cmdline2.stdout.exp b/none/tests/cmdline2.stdout.exp
index 51409ed..09242b0 100644
--- a/none/tests/cmdline2.stdout.exp
+++ b/none/tests/cmdline2.stdout.exp
@@ -50,6 +50,7 @@
     --trace-sched=no|yes      show thread scheduler details? [no]
     --wait-for-gdb=yes|no     pause on startup to wait for gdb attach
     --command-line-only=no|yes  only use command line options [no]
+
     --vex-iropt-verbosity             0 .. 9 [0]
     --vex-iropt-level                 0 .. 2 [2]
     --vex-iropt-precise-memory-exns   [no]
diff --git a/none/tests/filter_stderr b/none/tests/filter_stderr
index 5adbaa8..0258a98 100755
--- a/none/tests/filter_stderr
+++ b/none/tests/filter_stderr
@@ -5,7 +5,7 @@
 $dir/../../tests/filter_stderr_basic |
 
 # Remove "Corecheck, ..." line and the following copyright line.
-sed "/^Nulgrind, a binary JIT-compiler./ , /./ d"
+sed "/^Nulgrind, a binary JIT-compiler./ , /./ d" |
 
 # Anonymise addresses
 $dir/../../tests/filter_addresses