public inbox for lvm2-cvs@sourceware.org help / color / mirror / Atom feed
From: zkabelac@sourceware.org To: lvm-devel@redhat.com, lvm2-cvs@sourceware.org Subject: LVM2/test/api test.c Date: Tue, 01 Mar 2011 23:18:00 -0000 [thread overview] Message-ID: <20110301231841.10338.qmail@sourceware.org> (raw) CVSROOT: /cvs/lvm2 Module name: LVM2 Changes by: zkabelac@sourceware.org 2011-03-01 23:18:40 Modified files: test/api : test.c Log message: Build test.c also without readline library Allow bulding of this testing tool also without readline library. Outputs message about build without readline library then. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/test/api/test.c.diff?cvsroot=lvm2&r1=1.34&r2=1.35 --- LVM2/test/api/test.c 2010/11/25 14:35:46 1.34 +++ LVM2/test/api/test.c 2011/03/01 23:18:40 1.35 @@ -1,6 +1,6 @@ /* * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. - * Copyright (C) 2004-2009 Red Hat, Inc. All rights reserved. + * Copyright (C) 2004-2011 Red Hat, Inc. All rights reserved. * * This file is part of LVM2. * @@ -12,13 +12,18 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #include <stdio.h> #include <string.h> #include <stdlib.h> -#include <readline/readline.h> +#include <ctype.h> +#include "configure.h" #include "lvm2app.h" +#ifndef READLINE_SUPPORT +#include <readline/readline.h> + #define MAX_ARGS 64 static int lvm_split(char *str, int *argc, char **argv, int max) @@ -1071,6 +1076,13 @@ free(input); return 0; } +#else /* !READLINE_SUPPORT */ +static int lvmapi_test_shell(lvm_t libh) +{ + printf("Build without readline library, no interactive testing.\n"); + return 1; +} +#endif int main (int argc, char *argv[]) {
next reply other threads:[~2011-03-01 23:18 UTC|newest] Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top 2011-03-01 23:18 zkabelac [this message] -- strict thread matches above, loose matches on Subject: below -- 2011-03-01 23:29 zkabelac 2010-11-25 14:35 mornfall 2010-11-17 20:13 mornfall 2010-11-17 19:17 mornfall 2010-10-25 14:09 wysochanski 2010-05-19 11:53 wysochanski 2010-02-24 18:16 wysochanski 2009-08-07 21:22 wysochanski 2009-07-28 14:12 wysochanski 2009-07-28 13:49 wysochanski 2009-07-27 21:02 wysochanski 2009-07-27 17:45 wysochanski 2009-07-26 20:59 wysochanski 2009-07-26 20:58 wysochanski 2009-07-26 14:37 wysochanski 2009-07-26 13:08 wysochanski 2009-07-26 13:07 wysochanski 2009-07-26 2:35 wysochanski 2009-07-26 2:35 wysochanski 2009-07-24 12:51 wysochanski 2009-07-24 4:15 wysochanski 2009-07-23 23:40 wysochanski
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110301231841.10338.qmail@sourceware.org \ --to=zkabelac@sourceware.org \ --cc=lvm-devel@redhat.com \ --cc=lvm2-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).