Index: test/codegen_test.dart |
diff --git a/test/codegen_test.dart b/test/codegen_test.dart |
index 7495897faca368ff52f21f71d99bd21354e9dfaf..440a3fcaf0cc74b65f63aff7a4355f032416f33c 100644 |
--- a/test/codegen_test.dart |
+++ b/test/codegen_test.dart |
@@ -98,9 +98,10 @@ main(arguments) { |
// Collect any other files we've imported. |
var files = new Set<String>(); |
_collectTransitiveImports(contents, files, from: filePath); |
- |
+ var moduleName = |
+ path.withoutExtension(path.relative(filePath, from: inputDir)); |
var unit = new BuildUnit( |
- filename, baseDir, files.toList(), _moduleForLibrary); |
+ moduleName, baseDir, files.toList(), _moduleForLibrary); |
var module = compiler.compile(unit, options); |
_writeModule(path.join(outDir.path, filename), module); |
}); |