summaryrefslogtreecommitdiffhomepage
path: root/test/mruby_io_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/mruby_io_test.c')
-rw-r--r--test/mruby_io_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mruby_io_test.c b/test/mruby_io_test.c
index 36e56b87c..f58f9ff8c 100644
--- a/test/mruby_io_test.c
+++ b/test/mruby_io_test.c
@@ -18,7 +18,7 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self)
char wfname[] = "tmp.mruby-io-test.XXXXXXXX";
char symlinkname[] = "tmp.mruby-io-test.XXXXXXXX";
char socketname[] = "tmp.mruby-io-test.XXXXXXXX";
- char msg[] = "mruby io test";
+ char msg[] = "mruby io test\n";
mode_t mask;
int fd0, fd1, fd2, fd3;
FILE *fp;
@@ -46,7 +46,7 @@ mrb_io_test_io_setup(mrb_state *mrb, mrb_value self)
mrb_raise(mrb, E_RUNTIME_ERROR, "can't open temporary file");
return mrb_nil_value();
}
- fprintf(fp, "%s\n", msg);
+ fputs(msg, fp);
fclose(fp);
fp = fopen(wfname, "w");