#include "libxml.h"
#include <stdlib.h>
#include <stdio.h>
#if defined(LIBXML_THREAD_ENABLED) && defined(LIBXML_CATALOG_ENABLED) && defined(LIBXML_SAX1_ENABLED)
#ifdef HAVE_PTHREAD_H
#include <pthread.h>
#elif defined HAVE_BEOS_THREADS
#include <OS.h>
#endif
#include <string.h>
#if !defined(_MSC_VER)
#include <unistd.h>
#endif
#include <assert.h>
#ifdef HAVE_PTHREAD_H
#elif defined HAVE_BEOS_THREADS
#endif
static const char *testfiles[] = {
};
#endif
#ifndef xmlGenericErrorContext
#endif
static void *
{
} else {
}
if (myDoc) {
} else {
printf("parse failed\n");
okay = 0;
}
if (xmlDoValidityCheckingDefaultValue != 0) {
printf("ValidityCheckingDefaultValue override failed\n");
okay = 0;
}
if (xmlGenericErrorContext != stdout) {
printf("xmlGenericErrorContext override failed\n");
okay = 0;
}
} else {
if (xmlDoValidityCheckingDefaultValue != 1) {
printf("ValidityCheckingDefaultValue override failed\n");
okay = 0;
}
if (xmlGenericErrorContext != stderr) {
printf("xmlGenericErrorContext override failed\n");
okay = 0;
}
}
if (okay == 0)
return((void *) Failed);
return ((void *) Okay);
}
#ifdef HAVE_PTHREAD_H
int
main(void)
{
unsigned int i, repeat;
int ret;
for (i = 0; i < num_threads; i++) {
}
for (i = 0; i < num_threads; i++) {
(void *) testfiles[i]);
if (ret != 0) {
perror("pthread_create");
exit(1);
}
}
for (i = 0; i < num_threads; i++) {
if (ret != 0) {
perror("pthread_join");
exit(1);
}
}
for (i = 0; i < num_threads; i++)
}
return (0);
}
#elif defined HAVE_BEOS_THREADS
int
main(void)
{
unsigned int i, repeat;
printf("Parser initialized\n");
for (i = 0; i < num_threads; i++) {
}
printf("cleaned threads\n");
for (i = 0; i < num_threads; i++) {
tid[i] = spawn_thread(thread_specific_data, "xmlTestThread", B_NORMAL_PRIORITY, (void *) testfiles[i]);
perror("beos_thread_create");
exit(1);
}
}
for (i = 0; i < num_threads; i++) {
perror("beos_thread_wait");
exit(1);
}
}
for (i = 0; i < num_threads; i++)
}
}
printf("testThread : BeOS : SUCCESS!\n");
else
printf("testThread : BeOS : FAILED!\n");
return (0);
}
#endif /* pthreads or BeOS threads */
#else /* !LIBXML_THREADS_ENABLED */
int
main(void)
{
return (0);
}
#endif