File tree 1 file changed +2
-9
lines changed
stdlib-bootstrapped-tasty-tests/test
1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,6 @@ object BootstrappedStdLibTASYyTest:
94
94
def scalaLibClassesPath =
95
95
java.nio.file.Paths .get(scalaLibJarPath).getParent.resolve(" classes" ).normalize
96
96
97
- val scalaLibJarTastyClassNames = {
98
- val scalaLibJar = Jar (new File (java.nio.file.Paths .get(scalaLibJarPath)))
99
- scalaLibJar.toList.map(_.toString).filter(_.endsWith(" .tasty" ))
100
- .map(_.stripSuffix(" .tasty" ).replace(" /" , " ." ))
101
- .sorted
102
- }
103
-
104
97
val scalaLibTastyPaths =
105
98
new Directory (scalaLibClassesPath).deepFiles
106
99
.filter(_.`extension` == " tasty" )
@@ -113,8 +106,8 @@ object BootstrappedStdLibTASYyTest:
113
106
root.showExtractors // Check that we can traverse the full tree
114
107
()
115
108
}
116
- val classNames = scalaLibJarTastyClassNames .filterNot(blacklisted.map(_.stripSuffix( " .tasty " ).replace( " / " , " . " )) )
117
- val hasErrors = inspector.inspectTastyFilesInJar(scalaLibJarPath )
109
+ val tastyFiles = scalaLibTastyPaths .filterNot(blacklisted)
110
+ val hasErrors = inspector.inspectTastyFiles(tastyFiles.map(x => scalaLibClassesPath.resolve(x).toString) )
118
111
assert(! hasErrors, " Errors reported while loading from TASTy" )
119
112
120
113
def compileFromTastyInJar (blacklisted : Set [String ]): Unit = {
You can’t perform that action at this time.
0 commit comments