--- libaitcfg/example/test.c 2019/11/21 14:30:02 1.6 +++ libaitcfg/example/test.c 2023/01/23 23:27:26 1.7 @@ -72,6 +72,7 @@ int main() printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, NULL, "att", "0001122222222222")); printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "att", "0001122222222222")); printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "attr2", "1111111122222222222")); + printf("SetAttribute=%d\n", cfg_setAttribute(tmp2, "global", "dup", "1")); printf("GetAttribute value=%s\n", cfg_getAttribute(tmp2, "global", "attr2")); printf("UnsetAttribute=%d\n", cfg_unsetAttribute(tmp2, "global", "a")); printf("UnsetAttribute=%d\n", cfg_unsetAttribute(tmp2, "global", "")); @@ -102,12 +103,14 @@ int main() printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "gruh", "shmink", "ohoboho2")); printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "global", "piuk", "blahz1")); printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "global", "piuk", "blahz2")); + printf("tmp: SetAttribute=%d\n", cfg_setAttribute(tmp, "global", "dup", "2")); #ifndef SKIP_TEST_MERGE printf("before_merge ---------------------------------\n"); cfgWriteConfig(stdout, tmp2, 1); printf("after_merge=%d ---------------------------------\n", cfgMergeConfig(tmp2, tmp)); cfgWriteConfig(stdout, tmp2, 1); + printf("END_merge=%d ---------------------------------\n", cfg_getAttributeLong(tmp2, "global", "dup")); #else cfgEndConfig(&tmp); #endif