Fixing a busted regex in the expectations file. Also doing regex checking upfront.
diff --git a/libcore/tools/runner/expectations.txt b/libcore/tools/runner/expectations.txt
index 6b0a2f3..44d26d0 100644
--- a/libcore/tools/runner/expectations.txt
+++ b/libcore/tools/runner/expectations.txt
@@ -15,7 +15,7 @@
 # are allowed to buffer input as necessary.
 test java.io.StreamTokenizer.Reset
 result EXEC_FAILED
-pattern .*should get token \\[\, but get -1.*
+pattern .*Test failed: should get token \[, but get -1.*
 
 
 # These tests rely on Java 6 APIs
diff --git a/libcore/tools/runner/java/dalvik/runner/ExpectedResult.java b/libcore/tools/runner/java/dalvik/runner/ExpectedResult.java
index 256838e..6bb8a7f 100644
--- a/libcore/tools/runner/java/dalvik/runner/ExpectedResult.java
+++ b/libcore/tools/runner/java/dalvik/runner/ExpectedResult.java
@@ -22,6 +22,7 @@
 import java.io.IOException;
 import java.util.HashMap;
 import java.util.Map;
+import java.util.logging.Logger;
 import java.util.regex.Matcher;
 import java.util.regex.Pattern;
 
@@ -31,7 +32,7 @@
  * <pre>
  * test java.io.StreamTokenizer.Reset
  * result UNSUPPORTED
- * pattern .*should get token \\[\, but get -1.*
+ * pattern .*should get token \[, but get -1.*
  *
  * # should we fix this?
  * test java.util.Arrays.CopyMethods
@@ -41,6 +42,8 @@
  */
 class ExpectedResult {
 
+    private static final Logger logger = Logger.getLogger(ExpectedResult.class.getName());
+
     /** Matches lines in the file containing a key and value pair. */
     private static final Pattern KEY_VALUE_PAIR_PATTERN = Pattern.compile("(\\w+)\\s+(.+)");
 
@@ -65,6 +68,9 @@
         if (result == null) {
             throw new IllegalArgumentException();
         }
+        if (pattern != null) {
+            Pattern.compile(pattern); // verify that the pattern is well-formed
+        }
 
         this.result = result;
         this.pattern = pattern;
@@ -80,6 +86,8 @@
 
     public static Map<String, ExpectedResult> parse(File expectationsFile)
             throws IOException {
+        logger.fine("loading expectations file " + expectationsFile);
+
         BufferedReader reader = new BufferedReader(new FileReader(expectationsFile));
         try {
             Map<String, ExpectedResult> results = new HashMap<String, ExpectedResult>();
@@ -145,6 +153,7 @@
                 }
             }
 
+            logger.fine("loaded " + results.size() + " expectations.");
             return results;
         } finally {
             reader.close();