mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-03-27 18:50:07 +03:00
runsuite: Some errors are expected
This commit is contained in:
parent
077df27eb1
commit
28b3777e6d
19
runsuite.c
19
runsuite.c
@ -1061,6 +1061,7 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
nb_errors - old_errors);
|
||||
nb_errors = old_errors + 1;
|
||||
}
|
||||
|
||||
old_errors = nb_errors;
|
||||
old_tests = nb_tests;
|
||||
old_leaks = nb_leaks;
|
||||
@ -1072,6 +1073,7 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
nb_tests - old_tests,
|
||||
nb_errors - old_errors,
|
||||
nb_leaks - old_leaks);
|
||||
|
||||
old_errors = nb_errors;
|
||||
old_tests = nb_tests;
|
||||
old_leaks = nb_leaks;
|
||||
@ -1083,6 +1085,7 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
nb_tests - old_tests,
|
||||
nb_errors - old_errors,
|
||||
nb_leaks - old_leaks);
|
||||
|
||||
old_errors = nb_errors;
|
||||
old_tests = nb_tests;
|
||||
old_leaks = nb_leaks;
|
||||
@ -1100,6 +1103,7 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
nb_errors - old_errors,
|
||||
nb_internals,
|
||||
nb_leaks - old_leaks);
|
||||
|
||||
old_errors = nb_errors;
|
||||
old_tests = nb_tests;
|
||||
old_leaks = nb_leaks;
|
||||
@ -1107,16 +1111,20 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
nb_schematas = 0;
|
||||
xstcMetadata("xstc/Tests/Metadata/SunXMLSchema1-0-20020116.testSet",
|
||||
"xstc/Tests/");
|
||||
if ((nb_errors == old_errors) && (nb_leaks == old_leaks))
|
||||
if ((nb_errors == old_errors) && (nb_leaks == old_leaks)) {
|
||||
printf("Ran %d tests (%d schemata), no errors\n",
|
||||
nb_tests - old_tests, nb_schematas);
|
||||
else
|
||||
} else {
|
||||
printf("Ran %d tests (%d schemata), %d errors (%d internals), %d leaks\n",
|
||||
nb_tests - old_tests,
|
||||
nb_schematas,
|
||||
nb_errors - old_errors,
|
||||
nb_internals,
|
||||
nb_leaks - old_leaks);
|
||||
printf("Some errors were expected.\n");
|
||||
nb_errors = old_errors;
|
||||
}
|
||||
|
||||
old_errors = nb_errors;
|
||||
old_tests = nb_tests;
|
||||
old_leaks = nb_leaks;
|
||||
@ -1124,16 +1132,19 @@ main(int argc ATTRIBUTE_UNUSED, char **argv ATTRIBUTE_UNUSED) {
|
||||
nb_schematas = 0;
|
||||
xstcMetadata("xstc/Tests/Metadata/MSXMLSchema1-0-20020116.testSet",
|
||||
"xstc/Tests/");
|
||||
if ((nb_errors == old_errors) && (nb_leaks == old_leaks))
|
||||
if ((nb_errors == old_errors) && (nb_leaks == old_leaks)) {
|
||||
printf("Ran %d tests (%d schemata), no errors\n",
|
||||
nb_tests - old_tests, nb_schematas);
|
||||
else
|
||||
} else {
|
||||
printf("Ran %d tests (%d schemata), %d errors (%d internals), %d leaks\n",
|
||||
nb_tests - old_tests,
|
||||
nb_schematas,
|
||||
nb_errors - old_errors,
|
||||
nb_internals,
|
||||
nb_leaks - old_leaks);
|
||||
printf("Some errors were expected.\n");
|
||||
nb_errors = old_errors;
|
||||
}
|
||||
|
||||
if ((nb_errors == 0) && (nb_leaks == 0)) {
|
||||
ret = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user