diff options
author | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-09-15 19:00:18 +0000 |
---|---|---|
committer | zimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2011-09-15 19:00:18 +0000 |
commit | 6ef17b63a5488ec414c92d6c490f4a445c617d9b (patch) | |
tree | f7cf6d2947f1a85a77f1f55b241e26bebecd5e61 /tests | |
parent | 733a65beb140d8f8a23c5bdbaaab9feceb1826e6 (diff) | |
download | mpc-6ef17b63a5488ec414c92d6c490f4a445c617d9b.tar.gz |
[tests/tio_str.c] improved error message
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1095 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests')
-rw-r--r-- | tests/tio_str.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c index e46d887..933ba3f 100644 --- a/tests/tio_str.c +++ b/tests/tio_str.c @@ -121,8 +121,7 @@ check_io_str (mpc_ptr read_number, mpc_ptr expected) if (!(fp = fopen (tmp_file, "w"))) { - printf ("Error: Could not open file %s\n", tmp_file); - + printf ("Error: Could not open file %s in write mode\n", tmp_file); exit (1); } @@ -131,8 +130,7 @@ check_io_str (mpc_ptr read_number, mpc_ptr expected) if (!(fp = fopen (tmp_file, "r"))) { - printf ("Error: Could not open file %s\n", tmp_file); - + printf ("Error: Could not open file %s in read mode\n", tmp_file); exit (1); }; if (mpc_inp_str (read_number, fp, &sz, 10, MPC_RNDNN) == -1) |