mean_and_variance: Drop always failing tests
authorGuenter Roeck <linux@roeck-us.net>
Sun, 25 Feb 2024 16:29:25 +0000 (08:29 -0800)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 2 Apr 2024 18:45:08 +0000 (14:45 -0400)
commit97ca7c1f93bbac6982717a7055cd727813c45e61
tree64c36db6b15a8680b85d075fb5bc881b01fe3212
parentc42cd606e4f004e9ba36a05b9adb9e4eead5834a
mean_and_variance: Drop always failing tests

mean_and_variance_test_2 and mean_and_variance_test_4 always fail.
The input parameters to those tests are identical to the input parameters
to tests 1 and 3, yet the expected result for tests 2 and 4 is different
for the mean and stddev tests. That will always fail.

     Expected mean_and_variance_get_mean(mv) == mean[i], but
        mean_and_variance_get_mean(mv) == 22 (0x16)
        mean[i] == 10 (0xa)

Drop the bad tests.

Fixes: 65bc41090720 ("mean and variance: More tests")
Closes: https://lore.kernel.org/lkml/065b94eb-6a24-4248-b7d7-d3212efb4787@roeck-us.net/
Cc: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/mean_and_variance_test.c