Skip to content
Snippets Groups Projects
Commit 0c60d996 authored by jce's avatar jce
Browse files

My final version.

parent 4399bb79
No related branches found
No related tags found
No related merge requests found
......@@ -23,12 +23,6 @@
#include <stdarg.h>
#include <string.h>
#ifdef _DEJAGNU_WAIT_
# include <sys/time.h>
# include <sys/types.h>
# include <unistd.h>
#endif
#define _BUFFER_SIZE_ 512
static int passed;
......@@ -38,19 +32,6 @@ static int unresolve;
static char buffer[ _BUFFER_SIZE_ ];
#ifdef _DEJAGNU_WAIT_
void
wait(void) {
fd_set rfds;
struct timeval tv;
FD_ZERO(&rfds);
tv.tv_sec = 0;
tv.tv_usec = 1;
select(0, &rfds, NULL, NULL, &tv);
}
#endif
inline void
pass (const char* fmt, ... ) {
......@@ -62,9 +43,6 @@ pass (const char* fmt, ... ) {
va_end( ap );
printf ("\tPASSED: %s\n", buffer );
fflush( stdout );
#ifdef _DEJAGNU_WAIT_
wait();
#endif
}
inline void
......@@ -77,9 +55,6 @@ fail (const char* fmt, ... ) {
va_end( ap );
printf ("\tFAILED: %s\n", buffer );
fflush( stdout );
#ifdef _DEJAGNU_WAIT_
wait();
#endif
}
inline void
......@@ -92,9 +67,6 @@ untested (const char* fmt, ... ) {
va_end( ap );
printf ("\tUNTESTED: %s\n", buffer );
fflush( stdout );
#ifdef _DEJAGNU_WAIT_
wait();
#endif
}
inline void
......@@ -107,9 +79,6 @@ unresolved (const char* fmt, ... ) {
va_end( ap );
printf ("\tUNRESOLVED: %s\n", buffer );
fflush( stdout );
#ifdef _DEJAGNU_WAIT_
wait();
#endif
}
inline void
......@@ -121,9 +90,6 @@ note (const char* fmt, ... ) {
va_end( ap );
printf ("\tNOTE: %s\n", buffer );
fflush( stdout );
#ifdef _DEJAGNU_WAIT_
wait();
#endif
}
inline void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment