| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * tools/testing/selftests/kvm/lib/io.c |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2018, Google LLC. |
|---|
| 5 | | - * |
|---|
| 6 | | - * This work is licensed under the terms of the GNU GPL, version 2. |
|---|
| 7 | 6 | */ |
|---|
| 8 | 7 | |
|---|
| 9 | 8 | #include "test_util.h" |
|---|
| .. | .. |
|---|
| 62 | 61 | continue; |
|---|
| 63 | 62 | |
|---|
| 64 | 63 | case 0: |
|---|
| 65 | | - TEST_ASSERT(false, "Unexpected EOF,\n" |
|---|
| 66 | | - " rc: %zi num_written: %zi num_left: %zu", |
|---|
| 67 | | - rc, num_written, num_left); |
|---|
| 64 | + TEST_FAIL("Unexpected EOF,\n" |
|---|
| 65 | + " rc: %zi num_written: %zi num_left: %zu", |
|---|
| 66 | + rc, num_written, num_left); |
|---|
| 68 | 67 | break; |
|---|
| 69 | 68 | |
|---|
| 70 | 69 | default: |
|---|
| .. | .. |
|---|
| 139 | 138 | break; |
|---|
| 140 | 139 | |
|---|
| 141 | 140 | case 0: |
|---|
| 142 | | - TEST_ASSERT(false, "Unexpected EOF,\n" |
|---|
| 143 | | - " rc: %zi num_read: %zi num_left: %zu", |
|---|
| 144 | | - rc, num_read, num_left); |
|---|
| 141 | + TEST_FAIL("Unexpected EOF,\n" |
|---|
| 142 | + " rc: %zi num_read: %zi num_left: %zu", |
|---|
| 143 | + rc, num_read, num_left); |
|---|
| 145 | 144 | break; |
|---|
| 146 | 145 | |
|---|
| 147 | 146 | default: |
|---|