Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit/TEST Add copyright and rcs header to the test pr...
details: https://anonhg.NetBSD.org/src/rev/97451c78511a
branches: trunk
changeset: 356828:97451c78511a
user: abhinav <abhinav%NetBSD.org@localhost>
date: Sun Oct 15 19:17:30 2017 +0000
description:
Add copyright and rcs header to the test program.
Also, remove a test case which was not supposed to be there.
(While that test case works with the changes I committed, testing that
test case with the test program is not possible in its current form. I'm
working on that.)
diffstat:
lib/libedit/TEST/test_filecompletion.c | 39 +++++++++++++++++++++++++++------
1 files changed, 31 insertions(+), 8 deletions(-)
diffs (53 lines):
diff -r c014f47a55c0 -r 97451c78511a lib/libedit/TEST/test_filecompletion.c
--- a/lib/libedit/TEST/test_filecompletion.c Sun Oct 15 18:59:00 2017 +0000
+++ b/lib/libedit/TEST/test_filecompletion.c Sun Oct 15 19:17:30 2017 +0000
@@ -1,3 +1,34 @@
+/* $NetBSD: test_filecompletion.c,v 1.2 2017/10/15 19:17:30 abhinav Exp $ */
+
+/*-
+ * Copyright (c) 2017 Abhinav Upadhyay <abhinav%NetBSD.org@localhost>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
+ * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
+ * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING,
+ * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+ * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
#include "config.h"
#include <assert.h>
@@ -418,14 +449,6 @@
"dampers&and",
L"ls \"dampers&and\" "
},
- {
- /* test multiple words */
- L"ls word",
- "word",
- "word1 \"word2\\`with many \\ $characters\"",
- L"ls word1 \"word2\\`with many \\ $characters\""
- }
-
};
static const wchar_t break_chars[] = L" \t\n\"\\'`@$><=;|&{(";
Home |
Main Index |
Thread Index |
Old Index