Index: test/checker/self_host_test.dart |
diff --git a/test/checker/self_host_test.dart b/test/checker/self_host_test.dart |
index 88f3f7f7729e7e01cc7a4af96f7eeb653e8d9e26..dca6ab551c1ac34970298cbd88f429365ecfa0ca 100644 |
--- a/test/checker/self_host_test.dart |
+++ b/test/checker/self_host_test.dart |
@@ -10,19 +10,14 @@ import 'package:cli_util/cli_util.dart' show getSdkDir; |
import 'package:dev_compiler/devc.dart' show Compiler; |
import 'package:dev_compiler/src/options.dart'; |
import 'package:path/path.dart' as path; |
-import 'package:unittest/unittest.dart'; |
- |
-import '../test_util.dart'; |
- |
-void main(args) { |
- configureTest(); |
- |
- var testDir = path.absolute(path.dirname(Platform.script.path)); |
+import 'package:test/test.dart'; |
+import '../test_util.dart' show testDirectory; |
+void main() { |
test('checker can run on itself ', () { |
var options = new CompilerOptions( |
- entryPointFile: '$testDir/../all_tests.dart', |
- dartSdkPath: getSdkDir(args).path); |
+ entryPointFile: '$testDirectory/all_tests.dart', |
+ dartSdkPath: getSdkDir().path); |
new Compiler(options).run(); |
}); |
} |