Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libcurses Fix debug_test so it actually works and ...



details:   https://anonhg.NetBSD.org/src/rev/e21c874e689b
branches:  trunk
changeset: 1021566:e21c874e689b
user:      blymn <blymn%NetBSD.org@localhost>
date:      Fri Jun 04 23:07:39 2021 +0000

description:
Fix debug_test so it actually works and does not do damage
* disable blind clearing of /tmp.  The comment says this is needed for getwin/putwin
  those tests need to be looked at to correct this.
* remove invalid -I option from director arguments for now.
* fix paths to executables so debug_test will work with installed versions by default
  the previous version was using the src tree locations but basedir was wrong for that.

diffstat:

 tests/lib/libcurses/debug_test |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 8276f06e789f -r e21c874e689b tests/lib/libcurses/debug_test
--- a/tests/lib/libcurses/debug_test    Fri Jun 04 22:41:36 2021 +0000
+++ b/tests/lib/libcurses/debug_test    Fri Jun 04 23:07:39 2021 +0000
@@ -8,7 +8,7 @@
 export INCLUDE_PATH
 #
 CURSES_TRACE_FILE="/tmp/ctrace"
-SLAVE="${BASEDIR}/slave/slave"
+SLAVE="${BASEDIR}/slave"
 
 usage() {
        echo "Set up the environment to run the test frame.  Option flags:"
@@ -31,10 +31,11 @@
 
 # This is needed for getwin/putwin test case and /tmp can be used for any file
 # related tests.
-rm -rf /tmp/*
+#rm -rf /tmp/*
 
 #
-ARGS="-T ${BASEDIR} -I ${INCLUDE_PATH} -C ${CHECK_PATH}"
+#ARGS="-T ${BASEDIR} -I ${INCLUDE_PATH} -C ${CHECK_PATH}"
+ARGS="-T ${BASEDIR} -C ${CHECK_PATH}"
 #
 while getopts cf:L:s:vg opt
 do
@@ -90,4 +91,4 @@
        exit 1
 fi
 #
-exec ${BASEDIR}/director/director ${ARGS} -s ${SLAVE} "${INCLUDE_PATH}/$1"
+exec ${BASEDIR}/director ${ARGS} -s ${SLAVE} "${INCLUDE_PATH}/$1"



Home | Main Index | Thread Index | Old Index