summaryrefslogtreecommitdiff
path: root/test/mpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mpu.c')
-rw-r--r--test/mpu.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/test/mpu.c b/test/mpu.c
index dfc5877d5a..2193c0c617 100644
--- a/test/mpu.c
+++ b/test/mpu.c
@@ -3,22 +3,13 @@
* found in the LICENSE file.
*/
-/* This test file meant to be executed on a real device. Example:
- * 1. make tests BOARD=bloonchipper
- * 2. servod --board=bloonchipper
- * 3. flash_ec --board bloonchipper --image build/bloonchipper/test-mpu.bin
- * 4. Open console via dut-control raw_fpmcu_console_uart_pty
- * 5. runtest on console
- */
-
+#include <stdbool.h>
#include "mpu.h"
#include "mpu_private.h"
#include "string.h"
#include "system.h"
#include "test_util.h"
-#include <stdbool.h>
-
struct mpu_info {
bool has_mpu;
int num_mpu_regions;
@@ -181,19 +172,6 @@ test_static int test_mpu_get_rw_regions(void)
return EC_SUCCESS;
}
-test_static int test_align_down_to_bits(void)
-{
- uint32_t addr = 0x87654321;
-
- TEST_EQ(align_down_to_bits(addr, 0), addr, "%d");
- TEST_EQ(align_down_to_bits(addr, 1), 0x87654320, "%d");
- TEST_EQ(align_down_to_bits(addr, 30), 0x80000000, "%d");
- TEST_EQ(align_down_to_bits(addr, 31), 0x80000000, "%d");
- TEST_EQ(align_down_to_bits(addr, 32), addr, "%d");
- TEST_EQ(align_down_to_bits(addr, 33), addr, "%d");
- return EC_SUCCESS;
-}
-
void run_test(int argc, const char **argv)
{
enum ec_image cur_image = system_get_image_copy();
@@ -233,8 +211,6 @@ void run_test(int argc, const char **argv)
RUN_TEST(reset_mpu);
RUN_TEST(test_mpu_get_rw_regions);
RUN_TEST(reset_mpu);
- RUN_TEST(test_align_down_to_bits);
- RUN_TEST(reset_mpu);
/* This test must be last because it generates a panic */
RUN_TEST(test_mpu_update_region_valid_region);
RUN_TEST(reset_mpu);