Skip to content
Snippets Groups Projects
Commit c15b06e5 authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

number of iterations lowered from 1000 to 100 to save time

Rev: src/modules/gdbmmod/testsuite.in:1.2
Rev: src/modules/readlinemod/configure.in:1.3
parent 5988926d
No related branches found
No related tags found
No related merge requests found
......@@ -15,17 +15,17 @@ cond( [[ master()->programs["/precompiled/gdbm"] ]],
test_true(GDBMBASE->store("foo","bar"))
GDBMNULLTEST
test_equal(GDBMBASE->fetch("foo"),"bar")
test_do([[int e; for(e=0;e<1000;e++) GDBMBASE->store("x"+e,"y"+e)]])
test_do([[int e; for(e=0;e<100;e++) GDBMBASE->store("x"+e,"y"+e)]])
GDBMNULLTEST
test_any(int e; for(e=0;e<1000;e++) if(GDBMBASE->fetch("x"+e)!="y"+e) return e; return -1,-1)
test_any(int e; for(e=0;e<100;e++) if(GDBMBASE->fetch("x"+e)!="y"+e) return e; return -1,-1)
GDBMNULLTEST
test_true(GDBMBASE->store(sprintf("%'23'100000s",""),sprintf("%'32'100000s","")))
test_true(GDBMBASE->fetch(sprintf("%'23'100000s",""))==sprintf("%'32'100000s",""))
GDBMNULLTEST
test_equal(GDBMBASE->fetch("foo"),"bar")
test_any(int e; for(e=0;e<1000;e++) if(GDBMBASE->fetch("x"+e)!="y"+e) return e; return -1,-1)
test_any(int e; for(e=0;e<100;e++) if(GDBMBASE->fetch("x"+e)!="y"+e) return e; return -1,-1)
test_true(GDBMBASE->fetch(sprintf("%'23'100000s",""))==sprintf("%'32'100000s",""))
test_any(int e; string k; for(k=GDBMBASE->firstkey();k;k=GDBMBASE->nextkey(k)) e++; return e,1002)
test_any(int e; string k; for(k=GDBMBASE->firstkey();k;k=GDBMBASE->nextkey(k)) e++; return e,102)
test_do(GDBMBASE->sync())
test_do(GDBMBASE->reorganize())
......
......@@ -7,11 +7,8 @@ AC_SUBST(RANLIB)
AC_CHECK_HEADERS(readline.h history.h readline/readline.h history/history.h readline/history.h)
if test $ac_cv_header_readline_h = yes -o \
$ac_cv_header_readline_readline_h = yes ; then
if test $ac_cv_header_history_h = yes -o \
$ac_cv_header_history_history_h = yes -o \
$ac_cv_header_readline_history_h = yes ; then
if test $ac_cv_header_readline_h = yes -o $ac_cv_header_readline_readline_h = yes ; then
if test $ac_cv_header_history_h = yes -o $ac_cv_header_history_history_h = yes -o $ac_cv_header_readline_history_h = yes ; then
AC_CHECK_LIB(termcap, tputs)
AC_CHECK_LIB(readline, readline)
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment