Rename ES2 error tests 'T' through 'Z' to .rts.
Change-Id: I528d2b7a53748077f2dd7e7e04927d2a6b78ac8f Bug: skia:13042 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/523429 Commit-Queue: John Stiles <johnstiles@google.com> Auto-Submit: John Stiles <johnstiles@google.com> Reviewed-by: Arman Uguray <armansito@google.com> Commit-Queue: Arman Uguray <armansito@google.com>
This commit is contained in:
parent
6424dd02a8
commit
c29e37ad4c
@ -224,27 +224,27 @@ sksl_error_tests = [
|
||||
"/sksl/errors/SwizzleOnlyLiterals.rts",
|
||||
"/sksl/errors/SwizzleOutOfBounds.rts",
|
||||
"/sksl/errors/SwizzleTooManyComponents.rts",
|
||||
"/sksl/errors/TernaryMismatch.sksl",
|
||||
"/sksl/errors/UnassignedOutParameter.sksl",
|
||||
"/sksl/errors/UndeclaredFunction.sksl",
|
||||
"/sksl/errors/UndefinedFunction.sksl",
|
||||
"/sksl/errors/UndefinedSymbol.sksl",
|
||||
"/sksl/errors/UniformVarWithInitializerExpression.sksl",
|
||||
"/sksl/errors/TernaryMismatch.rts",
|
||||
"/sksl/errors/UnassignedOutParameter.rts",
|
||||
"/sksl/errors/UndeclaredFunction.rts",
|
||||
"/sksl/errors/UndefinedFunction.rts",
|
||||
"/sksl/errors/UndefinedSymbol.rts",
|
||||
"/sksl/errors/UniformVarWithInitializerExpression.rts",
|
||||
"/sksl/errors/UnknownDivideByZero.sksl",
|
||||
"/sksl/errors/UnsupportedGLSLIdentifiers.sksl",
|
||||
"/sksl/errors/UnscopedVariableInDoWhile.sksl",
|
||||
"/sksl/errors/UnscopedVariableInElse.sksl",
|
||||
"/sksl/errors/UnscopedVariableInFor.sksl",
|
||||
"/sksl/errors/UnscopedVariableInIf.sksl",
|
||||
"/sksl/errors/UnscopedVariableInElse.rts",
|
||||
"/sksl/errors/UnscopedVariableInFor.rts",
|
||||
"/sksl/errors/UnscopedVariableInIf.rts",
|
||||
"/sksl/errors/UnscopedVariableInWhile.sksl",
|
||||
"/sksl/errors/UsingInvalidValue.sksl",
|
||||
"/sksl/errors/VectorIndexOutOfRange.sksl",
|
||||
"/sksl/errors/UnsupportedGLSLIdentifiers.rts",
|
||||
"/sksl/errors/UsingInvalidValue.rts",
|
||||
"/sksl/errors/VectorIndexOutOfRange.rts",
|
||||
"/sksl/errors/VectorInlinedIndexOutOfRange.sksl",
|
||||
"/sksl/errors/VectorSlice.sksl",
|
||||
"/sksl/errors/VectorSlice.rts",
|
||||
"/sksl/errors/VertexEarlyReturn.vert",
|
||||
"/sksl/errors/VoidConstructor.sksl",
|
||||
"/sksl/errors/VoidInStruct.sksl",
|
||||
"/sksl/errors/VoidVariable.sksl",
|
||||
"/sksl/errors/VoidConstructor.rts",
|
||||
"/sksl/errors/VoidInStruct.rts",
|
||||
"/sksl/errors/VoidVariable.rts",
|
||||
"/sksl/errors/WhileTypeMismatch.sksl",
|
||||
]
|
||||
|
||||
@ -292,7 +292,7 @@ sksl_spirv_tests = [
|
||||
"/sksl/errors/LayoutInStruct.sksl",
|
||||
"/sksl/errors/Ossfuzz36850.sksl",
|
||||
"/sksl/errors/Ossfuzz37469.sksl",
|
||||
"/sksl/errors/UndefinedFunction.sksl",
|
||||
"/sksl/errors/UndefinedFunction.rts",
|
||||
]
|
||||
|
||||
sksl_shared_tests = [
|
||||
|
@ -4,7 +4,7 @@ void testIn(in float2 a, in float2 b, in float2 c) { a = float2(1);
|
||||
void testOut(out float2 a, out float2 b, out float2 c) { a = float2(1); }
|
||||
void testInout(inout float2 a, inout float2 b, inout float2 c) { a = float2(1); }
|
||||
|
||||
void main(float2 p) {
|
||||
void func(float2 p) {
|
||||
testIn(p, p, p);
|
||||
testOut(p, p, p);
|
||||
testInout(p, p, p);
|
@ -1,4 +1,4 @@
|
||||
void main() { int x = foo(1); }
|
||||
void func() { int x = foo(1); }
|
||||
|
||||
/*%%*
|
||||
unknown identifier 'foo'
|
@ -1,6 +1,6 @@
|
||||
int foo(int x);
|
||||
|
||||
void main() { int x = foo(1); }
|
||||
void func() { int x = foo(1); }
|
||||
|
||||
/*%%*
|
||||
function 'int foo(int x)' is not defined
|
7
resources/sksl/errors/UnscopedVariableInElse.rts
Normal file
7
resources/sksl/errors/UnscopedVariableInElse.rts
Normal file
@ -0,0 +1,7 @@
|
||||
void func() {
|
||||
if (true) ; else half x = 1;
|
||||
}
|
||||
|
||||
/*%%*
|
||||
variable 'x' must be created in a scope
|
||||
*%%*/
|
@ -1,7 +0,0 @@
|
||||
void main() {
|
||||
if (true) ; else half4 color = sk_FragColor;
|
||||
}
|
||||
|
||||
/*%%*
|
||||
variable 'color' must be created in a scope
|
||||
*%%*/
|
@ -1,4 +1,4 @@
|
||||
void main() {
|
||||
void func() {
|
||||
for (int x=0; x<10; ++x) float s = sqrt(4);
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
void main() {
|
||||
void func() {
|
||||
if (true) half4 x;
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
void main() {
|
||||
void func() {
|
||||
void();
|
||||
}
|
||||
|
@ -1,4 +1,4 @@
|
||||
### Compilation failed:
|
||||
|
||||
error: 2: variable 'color' must be created in a scope
|
||||
error: 2: variable 'x' must be created in a scope
|
||||
1 error
|
||||
|
Loading…
Reference in New Issue
Block a user