aboutsummaryrefslogtreecommitdiff
path: root/tests/unit/test-throttle.c
diff options
context:
space:
mode:
authorMichael Tokarev <mjt@tls.msk.ru>2023-07-14 14:33:27 +0300
committerMichael Tokarev <mjt@tls.msk.ru>2023-09-08 13:08:52 +0300
commit96420a30e0b509914609e45456ed3dfd47360a8c (patch)
treee31d56ce9b3cd9eed6246ac7bcd4decb1fa7d386 /tests/unit/test-throttle.c
parentd30b5bc95a9406b4125a35defba3a953358215cb (diff)
downloadqemu-96420a30e0b509914609e45456ed3dfd47360a8c.zip
qemu-96420a30e0b509914609e45456ed3dfd47360a8c.tar.gz
qemu-96420a30e0b509914609e45456ed3dfd47360a8c.tar.bz2
tests/: spelling fixes
with some rewording in tests/qemu-iotests/298 tests/qtest/fuzz/generic_fuzz.c tests/unit/test-throttle.c as suggested by Eric. Signed-off-by: Michael Tokarev <mjt@tls.msk.ru> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/unit/test-throttle.c')
-rw-r--r--tests/unit/test-throttle.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/unit/test-throttle.c b/tests/unit/test-throttle.c
index 7adb5e6..dc8739c 100644
--- a/tests/unit/test-throttle.c
+++ b/tests/unit/test-throttle.c
@@ -135,7 +135,7 @@ static void test_compute_wait(void)
g_assert(double_cmp(bkt.burst_level, 0));
g_assert(double_cmp(bkt.level, (i + 1) * (bkt.max - bkt.avg) / 10));
/* We can do bursts for the 2 seconds we have configured in
- * burst_length. We have 100 extra miliseconds of burst
+ * burst_length. We have 100 extra milliseconds of burst
* because bkt.level has been leaking during this time.
* After that, we have to wait. */
result = i < 21 ? 0 : 1.8 * NANOSECONDS_PER_SECOND;
@@ -375,11 +375,11 @@ static void test_is_valid_for_value(int value, bool should_be_valid)
static void test_is_valid(void)
{
- /* negative number are invalid */
+ /* negative numbesr are invalid */
test_is_valid_for_value(-1, false);
- /* zero are valids */
+ /* zero is valid */
test_is_valid_for_value(0, true);
- /* positives numers are valids */
+ /* positives numbers are valid */
test_is_valid_for_value(1, true);
}