aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-15 23:43:00 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-01-15 23:43:00 -0800
commit64b1b5ca38b3b2d5ccfb84a01d8ad13299b8c581 (patch)
tree1e27956648467dcdf75d1ac8f8b223f5c9e7398f
parent0627ae82fb2366aa140b986e80f2e68b822e4242 (diff)
parent8e77aca854f3b4aa28fbd5c6a190988a35c8918a (diff)
Merge branch 'master' into pager
-rw-r--r--Makefile.in6
-rw-r--r--configure.ac38
-rw-r--r--fish_tests.cpp9
-rw-r--r--highlight.cpp2
-rwxr-xr-xtests/test.fish4
5 files changed, 11 insertions, 48 deletions
diff --git a/Makefile.in b/Makefile.in
index 31b23d5e..c016d9f7 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -47,7 +47,6 @@ mandir = @mandir@
sysconfdir = @sysconfdir@
docdir = @docdir@
localedir = @localedir@
-optbindirs = @optbindirs@
#
# Various flags
@@ -302,7 +301,8 @@ doc/refman.pdf: doc
#
test: $(PROGRAMS) fish_tests
- ./fish_tests; cd tests; ../fish <test.fish;
+ ./fish_tests
+ cd tests; ../fish <test.fish;
.PHONY: test
@@ -376,8 +376,6 @@ doc.h: $(HDR_FILES)
-e "s,@docdir\@,$(docdir),g" \
-e "s|@configure_input\@|$@, generated from $@.in by the Makefile. DO NOT MANUALLY EDIT THIS FILE!|g" \
-e "s,@prefix\@,$(prefix),g" \
- -e "s,@optbindirs\@,$(optbindirs),g"
-#-e "s,@\@,$(),"
#
diff --git a/configure.ac b/configure.ac
index 5cc31af6..9eda25a6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -21,7 +21,6 @@ conf_arg=$@
# List of output variables produced by this configure script
#
-AC_SUBST(docdir)
AC_SUBST(HAVE_GETTEXT)
AC_SUBST(HAVE_DOXYGEN)
AC_SUBST(LDFLAGS_FISH)
@@ -30,9 +29,6 @@ AC_SUBST(LIBS_FISH_INDENT)
AC_SUBST(LIBS_FISH_PAGER)
AC_SUBST(LIBS_FISHD)
AC_SUBST(LIBS_MIMEDB)
-AC_SUBST(localedir)
-AC_SUBST(optbindirs)
-AC_SUBST(prefix)
#
@@ -382,40 +378,6 @@ esac
#
-# Set up PREFIX and related preprocessor symbols. Fish needs to know
-# where it will be installed. One of the reasons for this is so that
-# it can make sure the fish installation directory is in the path
-# during startup.
-#
-
-if [[ "$prefix" = NONE ]]; then
- prefix=/usr/local
-fi
-
-
-#
-# Set up the directory where the documentation files should be
-# installed
-#
-
-AC_ARG_VAR( [docdir], [Documentation directory] )
-
-if test -z $docdir; then
- docdir=$datadir/doc/fish
-else
- docdir=$docdir
-fi
-
-
-#
-# Set up locale directory. This is where the .po files will be
-# installed.
-#
-
-localedir=$datadir/locale
-
-
-#
# See if Linux procfs is present. This is used to get extra
# information about running processes.
#
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 6c536bca..8b08365b 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -2322,14 +2322,14 @@ static void test_new_parser_fuzzing(void)
double start = timef();
bool log_it = true;
- size_t max_len = 5;
- for (size_t len = 0; len < max_len; len++)
+ unsigned long max_len = 5;
+ for (unsigned long len = 0; len < max_len; len++)
{
if (log_it)
fprintf(stderr, "%lu / %lu...", len, max_len);
/* We wish to look at all permutations of 4 elements of 'fuzzes' (with replacement). Construct an int and keep incrementing it. */
- size_t permutation = 0;
+ unsigned long permutation = 0;
while (string_for_permutation(fuzzes, sizeof fuzzes / sizeof *fuzzes, len, permutation++, &src))
{
parse_tree_from_string(src, parse_flag_continue_after_error, &node_tree, &errors);
@@ -2815,4 +2815,7 @@ int main(int argc, char **argv)
event_destroy();
proc_destroy();
+ if(err_count != 0) {
+ return(1);
+ }
}
diff --git a/highlight.cpp b/highlight.cpp
index 0bce91ce..31ea2c8e 100644
--- a/highlight.cpp
+++ b/highlight.cpp
@@ -366,7 +366,7 @@ rgb_color_t highlight_get_color(highlight_spec_t highlight, bool is_background)
size_t idx = highlight_get_primary(highlight);
if (idx >= VAR_COUNT)
{
- idx = 0;
+ return rgb_color_t::normal();
}
env_var_t val_wstr = env_get_string(highlight_var[idx]);
diff --git a/tests/test.fish b/tests/test.fish
index 6d2ce42c..2b796ef8 100755
--- a/tests/test.fish
+++ b/tests/test.fish
@@ -40,11 +40,11 @@ if [ "$argv" != '-n' ]
if test $res = ok;
echo File test.fish tested ok
+ exit 0
else
echo File test.fish failed tests
+ exit 1
end;
-
- exit
end
echo Testing high level script functionality