summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-09-15 19:00:18 +0000
committerzimmerma <zimmerma@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2011-09-15 19:00:18 +0000
commit6ef17b63a5488ec414c92d6c490f4a445c617d9b (patch)
treef7cf6d2947f1a85a77f1f55b241e26bebecd5e61
parent733a65beb140d8f8a23c5bdbaaab9feceb1826e6 (diff)
downloadmpc-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
-rw-r--r--tests/tio_str.c6
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)