dlugolecki.net.pl
Dziennik
Polecane
Software
projects
/
gedcom-parse.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Correct bug in check_token: line length should be reset to 0.
[gedcom-parse.git]
/
t
/
src
/
update_gom.c
diff --git
a/t/src/update_gom.c
b/t/src/update_gom.c
index c4152ed7d69b240dd8cd48a85a843142e6a9603f..f529f66e3d9e5c62ec02dfd42268742c00664614 100644
(file)
--- a/
t/src/update_gom.c
+++ b/
t/src/update_gom.c
@@
-224,6
+224,7
@@
int test_record_add_delete_functions()
struct submitter* subm2;
struct submission* subn1;
struct user_rec* user1;
struct submitter* subm2;
struct submission* subn1;
struct user_rec* user1;
+ struct xref_value* xr;
int result;
char* value;
const char* new_nr_of_children = "3";
int result;
char* value;
const char* new_nr_of_children = "3";
@@
-277,35
+278,47
@@
int test_record_add_delete_functions()
user1 = gom_add_user_rec("@USER1@", "_TAG");
if (!user1) return 216;
user1 = gom_add_user_rec("@USER1@", "_TAG");
if (!user1) return 216;
+ xr = gom_make_individual_link(ind1);
+ if (!xr) return 217;
+
+ xr = gom_set_xref_value(&(fam1->husband), xr);
+ if (!xr) return 218;
+
output(0, "Intermediate output:\n");
show_data();
output(0, "Intermediate output:\n");
show_data();
- result = gom_delete_family(fam1);
- if (result != 0) return 217;
+ result = gom_delete_individual(ind1);
+ if (result == 0) return 251;
+
+ xr = gom_set_xref_value(&(fam1->husband), NULL);
+ if (xr) return 252;
result = gom_delete_individual(ind1);
result = gom_delete_individual(ind1);
- if (result != 0) return 218;
+ if (result != 0) return 253;
+
+ result = gom_delete_family(fam1);
+ if (result != 0) return 250;
result = gom_delete_multimedia(mm1);
result = gom_delete_multimedia(mm1);
- if (result != 0) return 2
19
;
+ if (result != 0) return 2
54
;
result = gom_delete_note(note1);
result = gom_delete_note(note1);
- if (result != 0) return 2
20
;
+ if (result != 0) return 2
55
;
result = gom_delete_repository(repo1);
result = gom_delete_repository(repo1);
- if (result != 0) return 2
21
;
+ if (result != 0) return 2
56
;
result = gom_delete_source(sour1);
result = gom_delete_source(sour1);
- if (result != 0) return 2
22
;
+ if (result != 0) return 2
57
;
result = gom_delete_submitter(subm2);
result = gom_delete_submitter(subm2);
- if (result != 0) return 2
23
;
+ if (result != 0) return 2
58
;
result = gom_delete_submission(subn1);
result = gom_delete_submission(subn1);
- if (result != 0) return 2
24
;
+ if (result != 0) return 2
59
;
result = gom_delete_user_rec(user1);
result = gom_delete_user_rec(user1);
- if (result != 0) return 2
25
;
+ if (result != 0) return 2
60
;
return 0;
}
return 0;
}