summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2016-07-13 16:17:16 -0700
committerCedric BAIL <cedric@osg.samsung.com>2016-07-13 16:17:16 -0700
commit7bb8afe4f9bcfe3a86fdf3b1cdfea083c1b68164 (patch)
tree5a9a03064bd2fed24e1e0e3ed4f48792c3d4ba89
parentcebbf43881f599e3a1492dfce43730a55c960626 (diff)
eo: fix tests after renaming.
-rw-r--r--src/tests/eo/suite/eo_test_general.c72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index ea94823f53..08480667fb 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -732,54 +732,54 @@ START_TEST(eo_generic_data)
732 732
733 733
734 734
735 eo_key_obj_set(obj, "test1", obj2); 735 eo_key_ref_set(obj, "test1", obj2);
736 objtmp = eo_key_obj_get(obj, "test1"); 736 objtmp = eo_key_ref_get(obj, "test1");
737 fail_if(obj2 != objtmp); 737 fail_if(obj2 != objtmp);
738 738
739 eo_key_obj_set(obj, "test1", NULL); 739 eo_key_ref_set(obj, "test1", NULL);
740 objtmp = eo_key_obj_get(obj, "test1"); 740 objtmp = eo_key_ref_get(obj, "test1");
741 fail_if(objtmp); 741 fail_if(objtmp);
742 742
743 eo_key_obj_set(obj, "test1", obj2); 743 eo_key_ref_set(obj, "test1", obj2);
744 fail_if(eo_ref_get(obj2) != 2); 744 fail_if(eo_ref_get(obj2) != 2);
745 745
746 eo_key_obj_set(obj, "test2", obj3); 746 eo_key_ref_set(obj, "test2", obj3);
747 fail_if(eo_ref_get(obj3) != 2); 747 fail_if(eo_ref_get(obj3) != 2);
748 748
749 objtmp = eo_key_obj_get(obj, "test1"); 749 objtmp = eo_key_ref_get(obj, "test1");
750 fail_if(obj2 != objtmp); 750 fail_if(obj2 != objtmp);
751 751
752 objtmp = eo_key_obj_get(obj, "test2"); 752 objtmp = eo_key_ref_get(obj, "test2");
753 fail_if(obj3 != objtmp); 753 fail_if(obj3 != objtmp);
754 754
755 data = eo_key_obj_get(obj, "test2"); 755 data = eo_key_ref_get(obj, "test2");
756 fail_if(obj3 != objtmp); 756 fail_if(obj3 != objtmp);
757 757
758 eo_key_obj_set(obj, "test2", NULL); 758 eo_key_ref_set(obj, "test2", NULL);
759 fail_if(eo_ref_get(obj3) != 1); 759 fail_if(eo_ref_get(obj3) != 1);
760 760
761 objtmp = eo_key_obj_get(obj, "test2"); 761 objtmp = eo_key_ref_get(obj, "test2");
762 fail_if(objtmp); 762 fail_if(objtmp);
763 763
764 objtmp = eo_key_obj_get(obj, "test1"); 764 objtmp = eo_key_ref_get(obj, "test1");
765 fail_if(obj2 != objtmp); 765 fail_if(obj2 != objtmp);
766 766
767 eo_key_obj_set(obj, "test1", NULL); 767 eo_key_ref_set(obj, "test1", NULL);
768 fail_if(eo_ref_get(obj2) != 1); 768 fail_if(eo_ref_get(obj2) != 1);
769 769
770 objtmp = eo_key_obj_get(obj, "test1"); 770 objtmp = eo_key_ref_get(obj, "test1");
771 fail_if(objtmp); 771 fail_if(objtmp);
772 772
773 eo_key_obj_set(obj, "test1", obj2); 773 eo_key_ref_set(obj, "test1", obj2);
774 eo_key_obj_set(obj, "test2", obj3); 774 eo_key_ref_set(obj, "test2", obj3);
775 eo_del(obj2); 775 eo_del(obj2);
776 eo_del(obj2); 776 eo_del(obj2);
777 eo_del(obj3); 777 eo_del(obj3);
778 eo_del(obj3); 778 eo_del(obj3);
779 objtmp = eo_key_obj_get(obj, "test1"); 779 objtmp = eo_key_ref_get(obj, "test1");
780 fail_if(objtmp); 780 fail_if(objtmp);
781 781
782 objtmp = eo_key_obj_get(obj, "test2"); 782 objtmp = eo_key_ref_get(obj, "test2");
783 fail_if(objtmp); 783 fail_if(objtmp);
784 784
785 785
@@ -787,52 +787,52 @@ START_TEST(eo_generic_data)
787 obj2 = eo_add(SIMPLE_CLASS, NULL); 787 obj2 = eo_add(SIMPLE_CLASS, NULL);
788 obj3 = eo_add(SIMPLE_CLASS, NULL); 788 obj3 = eo_add(SIMPLE_CLASS, NULL);
789 789
790 eo_key_obj_weak_set(obj, "test1", obj2); 790 eo_key_wref_set(obj, "test1", obj2);
791 objtmp = eo_key_obj_weak_get(obj, "test1"); 791 objtmp = eo_key_wref_get(obj, "test1");
792 fail_if(obj2 != objtmp); 792 fail_if(obj2 != objtmp);
793 793
794 eo_key_obj_weak_set(obj, "test1", NULL); 794 eo_key_wref_set(obj, "test1", NULL);
795 objtmp = eo_key_obj_weak_get(obj, "test1"); 795 objtmp = eo_key_wref_get(obj, "test1");
796 fail_if(objtmp); 796 fail_if(objtmp);
797 797
798 eo_key_obj_weak_set(obj, "test1", obj2); 798 eo_key_wref_set(obj, "test1", obj2);
799 fail_if(eo_ref_get(obj2) != 1); 799 fail_if(eo_ref_get(obj2) != 1);
800 800
801 eo_key_obj_weak_set(obj, "test2", obj3); 801 eo_key_wref_set(obj, "test2", obj3);
802 fail_if(eo_ref_get(obj3) != 1); 802 fail_if(eo_ref_get(obj3) != 1);
803 803
804 objtmp = eo_key_obj_weak_get(obj, "test1"); 804 objtmp = eo_key_wref_get(obj, "test1");
805 fail_if(obj2 != objtmp); 805 fail_if(obj2 != objtmp);
806 806
807 objtmp = eo_key_obj_weak_get(obj, "test2"); 807 objtmp = eo_key_wref_get(obj, "test2");
808 fail_if(obj3 != objtmp); 808 fail_if(obj3 != objtmp);
809 809
810 data = eo_key_obj_weak_get(obj, "test2"); 810 data = eo_key_wref_get(obj, "test2");
811 fail_if(obj3 != objtmp); 811 fail_if(obj3 != objtmp);
812 812
813 eo_key_obj_weak_set(obj, "test2", NULL); 813 eo_key_wref_set(obj, "test2", NULL);
814 fail_if(eo_ref_get(obj3) != 1); 814 fail_if(eo_ref_get(obj3) != 1);
815 815
816 objtmp = eo_key_obj_weak_get(obj, "test2"); 816 objtmp = eo_key_wref_get(obj, "test2");
817 fail_if(objtmp); 817 fail_if(objtmp);
818 818
819 objtmp = eo_key_obj_weak_get(obj, "test1"); 819 objtmp = eo_key_wref_get(obj, "test1");
820 fail_if(obj2 != objtmp); 820 fail_if(obj2 != objtmp);
821 821
822 eo_key_obj_weak_set(obj, "test1", NULL); 822 eo_key_wref_set(obj, "test1", NULL);
823 fail_if(eo_ref_get(obj2) != 1); 823 fail_if(eo_ref_get(obj2) != 1);
824 824
825 objtmp = eo_key_obj_weak_get(obj, "test1"); 825 objtmp = eo_key_wref_get(obj, "test1");
826 fail_if(objtmp); 826 fail_if(objtmp);
827 827
828 eo_key_obj_weak_set(obj, "test1", obj2); 828 eo_key_wref_set(obj, "test1", obj2);
829 eo_key_obj_weak_set(obj, "test2", obj3); 829 eo_key_wref_set(obj, "test2", obj3);
830 eo_del(obj2); 830 eo_del(obj2);
831 eo_del(obj3); 831 eo_del(obj3);
832 objtmp = eo_key_obj_weak_get(obj, "test1"); 832 objtmp = eo_key_wref_get(obj, "test1");
833 fail_if(objtmp); 833 fail_if(objtmp);
834 834
835 objtmp = eo_key_obj_weak_get(obj, "test2"); 835 objtmp = eo_key_wref_get(obj, "test2");
836 fail_if(objtmp); 836 fail_if(objtmp);
837 837
838 838