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

Side by Side Diff: tests/language/vm/debug_break_enabled_vm_test.dart

Issue 2765693002: Update all tests (Closed)
Patch Set: Created 3 years, 9 months 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 // VMOptions=--optimization-counter-threshold=5 --enable-debug-break --no-backgr ound-compilation 4 // VMOptions=--optimization-counter-threshold=5 --enable-debug-break --no-backgr ound-compilation
5 5
6 // Verify that the optimizer does not trip over the debug break (StopInstr). 6 // Verify that the optimizer does not trip over the debug break (StopInstr).
7 7
8 test(i) { 8 test(i) {
9 if (i.isOdd) { 9 if (i.isOdd) {
10 break "never_hit"; 10 break "never_hit";
11 } 11 }
12 // "crash" is not an allowed outcome specifier. 12 // "crash" is not an allowed outcome specifier.
13 // Use "ok" instead and mark the status file with "Crash, OK". 13 // Use "ok" instead and mark the status file with "Crash, OK".
14 if (i == 18) { 14 if (i == 18) {
15 break "hit"; /// 01: ok 15 break "hit"; //# 01: ok
16 } 16 }
17 } 17 }
18 18
19 void main() { 19 void main() {
20 for (var i = 0; i < 20; i += 2) { 20 for (var i = 0; i < 20; i += 2) {
21 test(i); 21 test(i);
22 } 22 }
23 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698