aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
m---------grecs0
-rw-r--r--src/config.c4
-rw-r--r--src/diskio.c2
-rw-r--r--tests/backup00.at25
4 files changed, 28 insertions, 3 deletions
diff --git a/grecs b/grecs
-Subproject 4c1056b45580fcb687cac656834f42dd9fba4ae
+Subproject 4c1959a4848c30206de3be4b16bdf04b650daae
diff --git a/src/config.c b/src/config.c
index 6101ad8..43be903 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1433,8 +1433,8 @@ config_help ()
static char docstring[] =
N_("Configuration file structure for wydawca.\n"
"For more information, use `info wydawca configuration'.");
- grecs_format_docstring (docstring, 0, stdout);
- grecs_format_statement_array (wydawca_kw, 1, 0, stdout);
+ grecs_print_docstring (docstring, 0, stdout);
+ grecs_print_statement_array (wydawca_kw, 1, 0, stdout);
}
void
diff --git a/src/diskio.c b/src/diskio.c
index 09cef96..2e61d49 100644
--- a/src/diskio.c
+++ b/src/diskio.c
@@ -159,7 +159,7 @@ copy_file (const char *file, const char *dst_file)
if (out_fd == -1)
{
logmsg (LOG_ERR, _("cannot create destination file %s: %s"),
- file, strerror (errno));
+ dst_file, strerror (errno));
close (in_fd);
return 1;
}
diff --git a/tests/backup00.at b/tests/backup00.at
new file mode 100644
index 0000000..8133c6b
--- /dev/null
+++ b/tests/backup00.at
@@ -0,0 +1,25 @@
+# This file is part of wydawca testsuite -*- Autotest -*-
+# Copyright (C) 2009, 2010 Sergey Poznyakoff
+#
+# Wydawca is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+#
+# Wydawca is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with Wydawca. If not, see <http://www.gnu.org/licenses/>.
+
+AT_SETUP(no backups)
+AT_KEYWORDS([backup backup00 no_backups])
+
+AT_CHECK([bkupname -no a],
+[0],
+[no backup
+])
+
+AT_CLEANUP

Return to:

Send suggestions and report system problems to the System administrator.