mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-06 06:53:39 +00:00
23 lines
463 B
C
23 lines
463 B
C
#include <string.h>
|
|
#include "unity.h"
|
|
#include "uvm32.h"
|
|
#include "../common/uvm32_common_custom.h"
|
|
|
|
#include "rom-header.h"
|
|
|
|
static uvm32_state_t vmst;
|
|
//static uvm32_evt_t evt;
|
|
|
|
void setUp(void) {
|
|
}
|
|
|
|
void tearDown(void) {
|
|
}
|
|
|
|
void test_giant_rom(void) {
|
|
// try to load a ROM bigger than we have space for
|
|
uvm32_init(&vmst);
|
|
TEST_ASSERT_EQUAL(false, uvm32_load(&vmst, rom_bin, UVM32_MEMORY_SIZE+1)); // if it reads off end of rom_bin, will crash
|
|
}
|
|
|
|
|