@@ -207,7 +207,7 @@ verify_pedigree(double recombination_rate, unsigned long seed,
207207static void
208208verify_pedigree_event_by_event (double recombination_rate , unsigned long seed ,
209209 tsk_size_t num_individuals , tsk_id_t * parents , double * time , tsk_flags_t * is_sample ,
210- tsk_id_t * population , uint32_t additional_nodes )
210+ tsk_id_t * population , uint32_t additional_nodes , bool stop_at_local_mrca )
211211{
212212 int ret , status1 , status2 ;
213213 int ploidy = 2 ;
@@ -223,6 +223,9 @@ verify_pedigree_event_by_event(double recombination_rate, unsigned long seed,
223223 parents , time , is_sample , population );
224224 CU_ASSERT_EQUAL_FATAL (ret , 0 );
225225
226+ msp_set_stop_at_local_mrca (& msp1 , stop_at_local_mrca );
227+ msp_set_stop_at_local_mrca (& msp2 , stop_at_local_mrca );
228+
226229 ret = msp_initialise (& msp1 );
227230 CU_ASSERT_EQUAL_FATAL (ret , 0 );
228231 ret = msp_initialise (& msp2 );
@@ -899,8 +902,9 @@ test_internal_samples(void)
899902 verify_pedigree (0 , 1 , 3 , parents , time , is_sample , NULL , 0 );
900903 verify_pedigree (0.1 , 1 , 3 , parents , time , is_sample , NULL , 0 );
901904
902- verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , is_sample , NULL , 0 );
903- verify_pedigree_event_by_event (0.1 , 1 , 3 , parents , time , is_sample , NULL , 0 );
905+ verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , is_sample , NULL , 0 , true);
906+ verify_pedigree_event_by_event (0.1 , 1 , 3 , parents , time , is_sample , NULL , 0 , true);
907+ verify_pedigree_event_by_event (0.1 , 1 , 3 , parents , time , is_sample , NULL , 0 , false);
904908}
905909
906910static void
@@ -919,8 +923,12 @@ test_no_leaf_samples(void)
919923 verify_pedigree (0 , 1 , num_inds , parents , time , is_sample , NULL , 0 );
920924 verify_pedigree (0.1 , 1 , num_inds , parents , time , is_sample , NULL , 0 );
921925
922- verify_pedigree_event_by_event (0 , 1 , num_inds , parents , time , is_sample , NULL , 0 );
923- verify_pedigree_event_by_event (0.1 , 1 , num_inds , parents , time , is_sample , NULL , 0 );
926+ verify_pedigree_event_by_event (
927+ 0 , 1 , num_inds , parents , time , is_sample , NULL , 0 , true);
928+ verify_pedigree_event_by_event (
929+ 0 , 1 , num_inds , parents , time , is_sample , NULL , 0 , false);
930+ verify_pedigree_event_by_event (
931+ 0.1 , 1 , num_inds , parents , time , is_sample , NULL , 0 , true);
924932}
925933
926934static void
@@ -966,7 +974,8 @@ test_trio_same_pop(void)
966974 tsk_id_t population [] = { 2 , 2 , 2 };
967975
968976 verify_pedigree (0 , 1 , 3 , parents , time , NULL , population , 0 );
969- verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , NULL , population , 0 );
977+ verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , NULL , population , 0 , true);
978+ verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , NULL , population , 0 , false);
970979}
971980
972981static void
@@ -978,7 +987,8 @@ test_trio_child_different_pop(void)
978987 tsk_id_t population [] = { 2 , 2 , 1 };
979988
980989 verify_pedigree (0 , 1 , 3 , parents , time , NULL , population , 0 );
981- verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , NULL , population , 0 );
990+ verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , NULL , population , 0 , true);
991+ verify_pedigree_event_by_event (0 , 1 , 3 , parents , time , NULL , population , 0 , false);
982992}
983993
984994int
0 commit comments