ftl: maintain state for the transaction that is currently active

This commit is contained in:
S.J.R. van Schaik 2017-10-03 13:15:10 +02:00
parent e40bd819d6
commit 65d269e2d4
4 changed files with 38 additions and 60 deletions

View file

@ -24,7 +24,6 @@ static void test_empty_root(void **state)
map.log2_page_size = ilog2(4 * KIB);
map.root = UINT32_MAX;
map.flags = 0;
ret = __real_trace_path(&map, NULL, &page, 0);
@ -81,7 +80,6 @@ static void test_exact_match(void **state)
map.log2_page_size = ilog2(4 * KIB);
map.root = 75;
map.flags = 0;
expect_value(__wrap_read_page_desc, map, &map);
expect_value(__wrap_read_page_desc, upage, 75);
@ -149,7 +147,6 @@ static void test_walk(void **state)
map.log2_page_size = ilog2(4 * KIB);
map.root = 42;
map.flags = 0;
expect_value(__wrap_read_page_desc, map, &map);
expect_value(__wrap_read_page_desc, upage, 42);