tests/test_list.c

changeset 804
5136f2fc32ec
parent 803
0711d869ce4d
child 807
c8d692131b1e
equal deleted inserted replaced
803:0711d869ce4d 804:5136f2fc32ec
1084 if (islinkedlist) { 1084 if (islinkedlist) {
1085 CX_DISABLE_LINKED_LIST_SWAP_SBO = true; 1085 CX_DISABLE_LINKED_LIST_SWAP_SBO = true;
1086 CX_TEST_CALL_SUBROUTINE(test_list_verify_swap, list, isptrlist, true); 1086 CX_TEST_CALL_SUBROUTINE(test_list_verify_swap, list, isptrlist, true);
1087 CX_DISABLE_LINKED_LIST_SWAP_SBO = false; 1087 CX_DISABLE_LINKED_LIST_SWAP_SBO = false;
1088 } else { 1088 } else {
1089 // TODO: currently, SBO for swap operation cannot be disabled for array lists 1089 CX_DISABLE_ARRAY_LIST_SWAP_SBO = true;
1090 CX_TEST_ASSERT(true); 1090 CX_TEST_CALL_SUBROUTINE(test_list_verify_swap, list, isptrlist, false);
1091 CX_DISABLE_ARRAY_LIST_SWAP_SBO = false;
1091 } 1092 }
1092 }) 1093 })
1093 1094
1094 roll_out_test_combos(find, { 1095 roll_out_test_combos(find, {
1095 const size_t testdata_len = 500; 1096 const size_t testdata_len = 500;

mercurial