anchor.diff:    print('run:stdin: r');
     await process.stdin.flush();
     await eventOrExit(reloaded.future);
  +
     process.stdin.write('R');
     print('run:stdin: R');
     await process.stdin.flush();
     await eventOrExit(restarted.future);
  +
     process.stdin.write('q');
     print('run:stdin: q');
     await process.stdin.flush();
  
positive.code:         );
          // Verify that it can discover the observatory port from past logs.
          await testReload(attachProcess);
        } finally {
          section('Uninstalling');
          await device.adb(<String>['uninstall', kAppId]);
  
negative.code:       event,
        process.exitCode,
        // Keep the test from running for 15 minutes if it gets stuck.
        Future<void>.delayed(const Duration(seconds: 10)).then<void>((void _) {
          throw StateError('eventOrExit timed out');
        }),
      ]);
    }
  
  