Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(66)

Unified Diff: pkg/kernel/test/verify_self_check.dart

Issue 2549793002: Add 'self_check' runtime for running self-checking unit tests (Closed)
Patch Set: Address comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/kernel/test/self_check_util.dart ('k') | tools/testing/dart/runtime_configuration.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/test/verify_self_check.dart
diff --git a/pkg/kernel/test/parent_pointer_test_disabled.dart b/pkg/kernel/test/verify_self_check.dart
similarity index 65%
rename from pkg/kernel/test/parent_pointer_test_disabled.dart
rename to pkg/kernel/test/verify_self_check.dart
index 292022767de461d43bf31d9c25789ad9eb6f5405..a9ccbb817d51749f9bcd247eb2eb47dac7bfb239 100644
--- a/pkg/kernel/test/parent_pointer_test_disabled.dart
+++ b/pkg/kernel/test/verify_self_check.dart
@@ -1,10 +1,14 @@
// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
+
import 'package:kernel/kernel.dart';
import 'package:kernel/verifier.dart';
-main() {
- Program program = loadProgramFromBinary('test/data/dart2js.dill');
- CheckParentPointers.check(program);
+import 'self_check_util.dart';
+
+main(List<String> args) {
+ runSelfCheck(args, (String filename) {
+ verifyProgram(loadProgramFromBinary(filename));
+ });
}
« no previous file with comments | « pkg/kernel/test/self_check_util.dart ('k') | tools/testing/dart/runtime_configuration.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698