Skip to content

Commit

Permalink
test/kvs/cache: add back one corner case test
Browse files Browse the repository at this point in the history
  • Loading branch information
garlick committed Nov 7, 2017
1 parent d217b71 commit 88043ad
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/kvs/test/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,12 @@ void cache_entry_treeobj_tests (void)
ok (cache_entry_get_valid (e) == true,
"cache entry now valid after cache_entry_set_treeobj call");

ok (cache_entry_set_raw (e, NULL, 0) < 0
&& errno == EBADE,
"cache_entry_set_raw fails with EBADE, setting to different value");
ok (cache_entry_set_raw (e, data, 4) < 0
&& errno == EBADE,
"cache_entry_set_raw fails with EBADE, changing validity type");
"cache_entry_set_raw fails with EBADE, setting to different value");

ok (cache_entry_set_dirty (e, true) == 0,
"cache_entry_set_dirty success");
Expand Down

0 comments on commit 88043ad

Please sign in to comment.