projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: use -z / -n to test for string empty / non-empty
[babeltrace.git]
/
tests
/
lib
/
conds
/
test_conds
diff --git
a/tests/lib/conds/test_conds
b/tests/lib/conds/test_conds
index 48b4fe75df8b27365e6d7a4bd6ef321066d5b481..af66f6d299fe2cac951b65a63f1bee873bde8a7f 100755
(executable)
--- a/
tests/lib/conds/test_conds
+++ b/
tests/lib/conds/test_conds
@@
-4,7
+4,7
@@
#
# Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
#
# Copyright (C) 2020 Philippe Proulx <pproulx@efficios.com>
-if [
"x${BT_TESTS_SRCDIR:-}" != "x
" ]; then
+if [
-n "${BT_TESTS_SRCDIR:-}
" ]; then
UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
else
UTILSSH="$(dirname "$0")/../../utils/utils.sh"
UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh"
else
UTILSSH="$(dirname "$0")/../../utils/utils.sh"
@@
-16,7
+16,7
@@
source "$UTILSSH"
reldir=lib/conds
export BT_TESTS_LIB_CONDS_TRIGGER_BIN="$BT_TESTS_BUILDDIR/$reldir/conds-triggers"
reldir=lib/conds
export BT_TESTS_LIB_CONDS_TRIGGER_BIN="$BT_TESTS_BUILDDIR/$reldir/conds-triggers"
-if [ "$BT_OS_TYPE" = "mingw" ]; then
+if [ "$BT_
TESTS_
OS_TYPE" = "mingw" ]; then
BT_TESTS_LIB_CONDS_TRIGGER_BIN="$BT_TESTS_LIB_CONDS_TRIGGER_BIN.exe"
fi
BT_TESTS_LIB_CONDS_TRIGGER_BIN="$BT_TESTS_LIB_CONDS_TRIGGER_BIN.exe"
fi
This page took
0.037938 seconds
and
4
git commands to generate.