added comments in rrc cell select test

master
Francisco Paisana 5 years ago
parent c6f422d23e
commit 510687766f

@ -292,6 +292,8 @@ int cell_select_test()
printf("==========================================================\n"); printf("==========================================================\n");
{ {
// CHECK: The starting serving cell pci=2 is the weakest, and cell selection procedure chooses pci=1
// CHECK: phy cell selection is successful, and rrc remains in pci=1
stack_test stack; stack_test stack;
rrc_test rrctest(log1, &stack); rrc_test rrctest(log1, &stack);
rrctest.init(); rrctest.init();
@ -324,6 +326,9 @@ int cell_select_test()
} }
{ {
// CHECK: The starting serving cell pci=1 is the strongest, and the cell selection procedure calls phy_cell_select
// for pci=1.
// CHECK: Cell selection fails in the phy, and rrc moves to pci=2
stack_test stack; stack_test stack;
rrc_test rrctest(log1, &stack); rrc_test rrctest(log1, &stack);
rrctest.init(); rrctest.init();
@ -337,14 +342,14 @@ int cell_select_test()
// Start cell selection procedure. The RRC will start with strongest cell // Start cell selection procedure. The RRC will start with strongest cell
TESTASSERT(rrctest.start_cell_select() == SRSLTE_SUCCESS); TESTASSERT(rrctest.start_cell_select() == SRSLTE_SUCCESS);
// TESTASSERT(stack.last_selected_cell.earfcn == 1); TESTASSERT(stack.last_selected_cell.earfcn == 1);
// TESTASSERT(stack.last_selected_cell.pci == 1); TESTASSERT(stack.last_selected_cell.pci == 1);
// TESTASSERT(rrctest.has_neighbour_cell(2, 2)); TESTASSERT(rrctest.has_neighbour_cell(2, 2));
// TESTASSERT(!rrctest.has_neighbour_cell(1, 1)); // selected current serving cell bc it is stronger TESTASSERT(!rrctest.has_neighbour_cell(1, 1)); // selected current serving cell bc it is stronger
//
// rrctest.cell_select_completed(false); // failed to set serving cell rrctest.cell_select_completed(false); // failed to set serving cell
// TESTASSERT(rrctest.has_neighbour_cell(2, 2)); TESTASSERT(rrctest.has_neighbour_cell(2, 2));
// TESTASSERT(!rrctest.has_neighbour_cell(1, 1)); TESTASSERT(!rrctest.has_neighbour_cell(1, 1));
} }
return SRSLTE_SUCCESS; return SRSLTE_SUCCESS;

Loading…
Cancel
Save