Signed-off-by: Xiao Jia <[email protected]>
---
 tests/busywriter.c | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 tests/busywriter.c

diff --git a/tests/busywriter.c b/tests/busywriter.c
new file mode 100644
index 0000000..1f622e2
--- /dev/null
+++ b/tests/busywriter.c
@@ -0,0 +1,22 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+int main(int argc, char **argv)
+{
+       int outer, inner, i, j;
+
+       if (argc != 3) {
+               fprintf(stderr, "usage: %s outer inner\n", argv[0]);
+               return 1;
+       }
+
+       outer = atoi(argv[1]);
+       inner = atoi(argv[2]);
+
+       for (i = 0; i < outer; i++) {
+               for (j = 0; j < inner; j++)
+                       printf("%c", 'x');
+               fflush(stdout);
+       }
+       return 0;
+}
-- 
2.6.0.rc2.230.g3dd15c0

-- 
You received this message because you are subscribed to the Google Groups 
"Akaros" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to