mirror of
https://github.com/ringtailsoftware/uvm32.git
synced 2026-06-05 22:43:39 +00:00
Smoke test of getProgramCounter
This commit is contained in:
parent
5667598427
commit
6434f0b0cb
1 changed files with 4 additions and 0 deletions
|
|
@ -18,6 +18,8 @@ void tearDown(void) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_syscalls(void) {
|
void test_syscalls(void) {
|
||||||
|
TEST_ASSERT_EQUAL(0x80000000, uvm32_getProgramCounter(&vmst));
|
||||||
|
|
||||||
// check for println syscall
|
// check for println syscall
|
||||||
uvm32_run(&vmst, &evt, 1000);
|
uvm32_run(&vmst, &evt, 1000);
|
||||||
TEST_ASSERT_EQUAL(evt.typ, UVM32_EVT_SYSCALL);
|
TEST_ASSERT_EQUAL(evt.typ, UVM32_EVT_SYSCALL);
|
||||||
|
|
@ -55,6 +57,8 @@ void test_syscalls(void) {
|
||||||
TEST_ASSERT_EQUAL(true, uvm32_hasEnded(&vmst));
|
TEST_ASSERT_EQUAL(true, uvm32_hasEnded(&vmst));
|
||||||
|
|
||||||
TEST_ASSERT_EQUAL(vmst._memory, uvm32_getMemory(&vmst));
|
TEST_ASSERT_EQUAL(vmst._memory, uvm32_getMemory(&vmst));
|
||||||
|
TEST_ASSERT_NOT_EQUAL(0x80000000, uvm32_getProgramCounter(&vmst));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue