| Index: tests/lib/platform/number_of_processors_test.dart
|
| diff --git a/tests/language/bootstrap_test.dart b/tests/lib/platform/number_of_processors_test.dart
|
| similarity index 50%
|
| copy from tests/language/bootstrap_test.dart
|
| copy to tests/lib/platform/number_of_processors_test.dart
|
| index 747dbf9e4bae1ff32d8597a228719fbe31a73d7c..043914d4c75cd7f5c7a5537b32565434a7fbbf0d 100644
|
| --- a/tests/language/bootstrap_test.dart
|
| +++ b/tests/lib/platform/number_of_processors_test.dart
|
| @@ -1,19 +1,15 @@
|
| // Copyright (c) 2013, 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.
|
| -// Dart test for testing binary operations.
|
| -// VMOptions=--verify_implements --check-function-fingerprints
|
|
|
| -class BootstrapTest {
|
| +import "dart:platform" as platform;
|
|
|
| - static testMain() {
|
| - var obj = new Object();
|
| -
|
| - return obj;
|
| - }
|
| -
|
| -}
|
| +import "package:unittest/unittest.dart";
|
|
|
| main() {
|
| - BootstrapTest.testMain();
|
| + if (platform.operatingSystem != null) {
|
| + expect(platform.numberOfProcessors, isPositive);
|
| + } else {
|
| + expect(platform.numberOfProcessors, isNull);
|
| + }
|
| }
|
|
|