mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Use % as the shader_test comment character.
So as to avoid clashing with the preprocessor. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
12acfd9724
commit
5f8becada4
@@ -452,13 +452,12 @@ START_TEST(shader_runner_d3d12)
|
||||
|
||||
vkd3d_test_set_context("Section %.*s, line %u", strlen(line) - 1, line, line_number);
|
||||
}
|
||||
else if (line[0] != '\n')
|
||||
else if (line[0] != '%' && line[0] != '\n')
|
||||
{
|
||||
switch (state)
|
||||
{
|
||||
case STATE_NONE:
|
||||
if (line[0] != '#')
|
||||
fprintf(stderr, "Ignoring line '%s' in %s.\n", line, argv[1]);
|
||||
fprintf(stderr, "Ignoring line '%s' in %s.\n", line, argv[1]);
|
||||
break;
|
||||
|
||||
case STATE_PREPROC:
|
||||
@@ -475,8 +474,7 @@ START_TEST(shader_runner_d3d12)
|
||||
}
|
||||
|
||||
case STATE_TEST:
|
||||
if (line[0] != '#')
|
||||
parse_test_directive(&context, line);
|
||||
parse_test_directive(&context, line);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user