commit 54baf4cef1af7366626d08badfa36b22b0e85b78 parent fba7d595d5156d57856132bdf642a0253a2cb1b3 Author: Antoni Sawicki <tenox@google.com> Date: Wed, 1 May 2019 17:50:16 -0700 added torture utility Diffstat:
M | Makefile | | | 5 | ++++- |
A | torture.c | | | 23 | +++++++++++++++++++++++ |
2 files changed, 27 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile @@ -6,5 +6,8 @@ all: ttyplot ttyplot: ttyplot.c $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) -lcurses +torture: torture.c + $(CC) $< -o $@ $(CFLAGS) $(LDFLAGS) + clean: - rm -f ttyplot + rm -f ttyplot torture diff --git a/torture.c b/torture.c @@ -0,0 +1,23 @@ +// +// torture ttyplot +// +// License: Apache 2.0 +// + +#include <stdio.h> +#include <stdlib.h> +#include <time.h> +#include <unistd.h> + +int main() { + + srand(time(NULL)); + + for(;;) { + printf("%d %d\n", rand()%100,rand()%100); + fflush(stdout); + //usleep(20000); + } + + return 0; +}