/[LeafOK_CVS]/lbbs/src/test_section_list.c
ViewVC logotype

Diff of /lbbs/src/test_section_list.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.18 by sysadm, Sat May 24 03:32:32 2025 UTC Revision 1.19 by sysadm, Sat May 24 07:32:46 2025 UTC
# Line 113  int main(int argc, char *argv[]) Line 113  int main(int argc, char *argv[])
113                                                                                     master_name[i % section_conf_count]);                                                                                     master_name[i % section_conf_count]);
114                  if (p_section[i] == NULL)                  if (p_section[i] == NULL)
115                  {                  {
116                          log_error("section_list_create(i = %d) error\n", i);                          printf("section_list_create(i = %d) error\n", i);
117                            return -3;
118                    }
119            }
120    
121            for (i = 0; i < section_count; i++)
122            {
123                    if (get_section_index(p_section[i]) != i)
124                    {
125                            printf("get_section_index(i = %d) error\n", i);
126                          return -3;                          return -3;
127                  }                  }
128          }          }
# Line 130  int main(int argc, char *argv[]) Line 139  int main(int argc, char *argv[])
139          for (i = 0; i < section_count; i++)          for (i = 0; i < section_count; i++)
140          {          {
141                  sid = i * 3 + 1;                  sid = i * 3 + 1;
142                  if (section_list_find_by_sid(sid) == NULL)                  if (section_list_find_by_sid(sid) == NULL || section_list_find_by_sid(sid)->sid != sid)
143                  {                  {
144                          printf("section_list_find_by_sid(%d) error\n", sid);                          printf("section_list_find_by_sid(%d) error\n", sid);
145                          return -3;                          return -3;


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1