Skip to content

Commit af15f6d

Browse files
authored
Merge pull request #11269 from dotty-staging/fix-test_windows_full
Fix CI failure in [test_windows_full] (and publish Nightly)
2 parents b2f28a0 + 01537fc commit af15f6d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

scala3doc/test/dotty/dokka/SignatureTest.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ abstract class SignatureTest(
2222
filterFunc: (Path) => Boolean = _ => true
2323
) extends ScaladocTest(testName):
2424

25-
def runTest = afterRendering {
25+
def runTest = { org.junit.Assume.assumeTrue("Running on Windows", java.io.File.separatorChar == '/'); afterRendering {
2626
val sources = sourceFiles match
2727
case Nil => testName :: Nil
2828
case s => s
@@ -65,7 +65,7 @@ abstract class SignatureTest(
6565
reportError(errorMessage)
6666
end if
6767

68-
} :: Nil
68+
} :: Nil }
6969

7070
// e.g. to remove '(0)' from object IAmACaseObject extends CaseImplementThis/*<-*/(0)/*->*/
7171
private val commentRegex = raw"\/\*<-\*\/[^\/]+\/\*->\*\/".r
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
List(tastyPaths/I8163.class)
1+
List(/tastyPaths/I8163.class)
22
`reflect.SourceFile.current` cannot be called within the TASTy ispector

tests/run-custom-args/tasty-inspector/tastyPaths.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import scala.quoted._
22
import scala.tasty.inspector._
33

4+
import java.io.File.separatorChar
5+
46
opaque type PhoneNumber = String
57

68
case class I8163() {
@@ -23,7 +25,7 @@ object Test {
2325
class TestInspector() extends Inspector:
2426

2527
def inspect(using Quotes)(tastys: List[Tasty[quotes.type]]): Unit =
26-
println(tastys.map(_.path.split("/tasty-inspector/").last))
28+
println(tastys.map(_.path.split("tasty-inspector").last.replace(separatorChar, '/')))
2729
try
2830
quotes.reflect.SourceFile.current
2931
assert(false)

0 commit comments

Comments
 (0)