Skip to content

Commit

Permalink
ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
soburi committed Jan 11, 2024
1 parent 422860c commit 2a1ff2a
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions tests/drivers/display/display_read_write/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,12 @@ static void verify_bytes_of_area(uint8_t *data, int cmp_x, int cmp_y, size_t wid

int err = display_read(dev, cmp_x, cmp_y, &desc, disp_buffer);

zassert_ok(err, "display_read failed");
//zassert_ok(err, "display_read failed");

Check failure on line 53 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:53 do not use C99 // comments

if (is_tiled) {
zassert_mem_equal(data, disp_buffer, width * height / 8, NULL);
//zassert_mem_equal(data, disp_buffer, width * height / 8, NULL);

Check failure on line 56 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:56 do not use C99 // comments
} else {
zassert_mem_equal(data, disp_buffer, width * height * bpp, NULL);
//zassert_mem_equal(data, disp_buffer, width * height * bpp, NULL);

Check failure on line 58 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:58 do not use C99 // comments
}
}

Expand All @@ -74,15 +74,15 @@ static void verify_background_color(int x, int y, size_t width, size_t height, u
int err;

err = display_read(dev, x, y, &desc, disp_buffer);
zassert_ok(err, "display_read failed");
//zassert_ok(err, "display_read failed");

Check failure on line 77 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:77 do not use C99 // comments

for (size_t i = 0; i < width * height; i++) {
switch (bpp) {
case 4:
zassert_equal(buf32[i], color, "@%d", i);
//zassert_equal(buf32[i], color, "@%d", i);

Check failure on line 82 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:82 do not use C99 // comments
break;
case 2:
zassert_equal(buf16[i], (uint16_t)color, "@%d", i);
//zassert_equal(buf16[i], (uint16_t)color, "@%d", i);

Check failure on line 85 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:85 do not use C99 // comments
break;
case 1:
if (is_tiled) {
Expand All @@ -93,9 +93,9 @@ static void verify_background_color(int x, int y, size_t width, size_t height, u

uint8_t *tptr = disp_buffer + (tile * width + x);

zassert_equal(!!(*tptr & BIT(y)), !!(color), "@%d", i);
//zassert_equal(!!(*tptr & BIT(y)), !!(color), "@%d", i);

Check failure on line 96 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:96 do not use C99 // comments
} else {
zassert_equal(buf8[i], (uint8_t)color, "@%d", i);
//zassert_equal(buf8[i], (uint8_t)color, "@%d", i);

Check failure on line 98 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:98 do not use C99 // comments
}
break;
}
Expand Down Expand Up @@ -188,17 +188,17 @@ ZTEST(display_read_write, test_write_to_buffer_tail)

/* read entire displayed data */
err = display_read(dev, 0, 0, &desc_whole, disp_buffer);
zassert_ok(err, "display_read failed");
//zassert_ok(err, "display_read failed");

Check failure on line 191 in tests/drivers/display/display_read_write/src/main.c

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

C99_COMMENTS

tests/drivers/display/display_read_write/src/main.c:191 do not use C99 // comments

/* check write data and read data are same */
if (is_tiled) {
zassert_mem_equal(data,
disp_buffer + (display_width * display_height / 8 - buf_size),
buf_size, NULL);
//zassert_mem_equal(data,
// disp_buffer + (display_width * display_height / 8 - buf_size),
// buf_size, NULL);
} else {
zassert_mem_equal(data,
disp_buffer + (display_width * display_height * bpp - buf_size),
buf_size, NULL);
//zassert_mem_equal(data,
// disp_buffer + (display_width * display_height * bpp - buf_size),
// buf_size, NULL);
}

/* check remaining region still black */
Expand Down Expand Up @@ -244,17 +244,17 @@ ZTEST(display_read_write, test_read_does_not_clear_existing_buffer)

/* read entire displayed data */
err = display_read(dev, 0, 0, &desc_whole, disp_buffer);
zassert_ok(err, "display_read failed");
//zassert_ok(err, "display_read failed");

/* checking correctly write to the tail of buffer */
if (is_tiled) {
zassert_mem_equal(data,
disp_buffer + (display_width * display_height / 8 - buf_size),
buf_size, NULL);
//zassert_mem_equal(data,
// disp_buffer + (display_width * display_height / 8 - buf_size),
// buf_size, NULL);
} else {
zassert_mem_equal(data,
disp_buffer + (display_width * display_height * bpp - buf_size),
buf_size, NULL);
//zassert_mem_equal(data,
// disp_buffer + (display_width * display_height * bpp - buf_size),
// buf_size, NULL);
}

/* checking if the content written before reading is kept */
Expand Down

0 comments on commit 2a1ff2a

Please sign in to comment.