diff options
| author | Tomoyuki Sahara <[email protected]> | 2014-04-21 10:02:25 +0900 |
|---|---|---|
| committer | Tomoyuki Sahara <[email protected]> | 2014-04-21 10:02:25 +0900 |
| commit | c46cb1b5eb1f92a23500bf877c10cd65e7c43e45 (patch) | |
| tree | 74fcc550cfab14412b3e937bddd5f5a9ba2424f9 /test/mruby_io_test.c | |
| parent | e5f30f83ce5f5a11c77990718b323f4718a3a03a (diff) | |
| download | mruby-c46cb1b5eb1f92a23500bf877c10cd65e7c43e45.tar.gz mruby-c46cb1b5eb1f92a23500bf877c10cd65e7c43e45.zip | |
more tests.
Diffstat (limited to 'test/mruby_io_test.c')
| -rw-r--r-- | test/mruby_io_test.c | 4 |
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"); |
