anchor.diff:    }
   
     ReportStatus checkDivergence(TestResult result1, TestResult result2) {
  -    if (result1.code == result2.code) {
  +    if (result1.exitCode == result2.exitCode) {
         // No divergence in result code.
  -      switch (result1.code) {
  -        case ResultCode.success:
  +      switch (result1.exitCode) {
  +        case 0:
             // Both were successful, inspect output.
             if (result1.output == result2.output) {
               numSuccess++;
  
positive.code: 
    TestResult run() {
      TestResult result = runCommand([precompiler, fileName, snapshot], env);
      if (result.code != ResultCode.success) {
        return result;
      }
      return runCommand([dart, snapshot], env);
  
negative.code:   TestResult run() {
      TestResult result = runCommand(
          [generate, '--gen-bytecode', platform, '-o', dill, fileName], env);
      if (result.exitCode != 0) {
        return result;
      }
      return runCommand(cmd, env);
  