Skip to content

Commit

Permalink
Add double quotes where immediately possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
BsAtHome committed Jan 31, 2025
1 parent 1c72d4b commit d041fc7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions tests/build/header-sanity/test.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/bin/sh
#!/bin/bash
set -xe
CPPFLAGS=$(pkg-config --silence-errors --cflags libtirpc)
for i in $HEADERS/*.h; do
for i in "$HEADERS"/*.h; do
case $i in
*/rtapi_app.h) continue ;;
esac
gcc ${CPPFLAGS} -DULAPI -I$HEADERS -E -x c $i > /dev/null
gcc ${CPPFLAGS} -DULAPI -I"$HEADERS" -E -x c "$i" > /dev/null
done
for i in $HEADERS/*.h $HEADERS/*.hh; do
for i in "$HEADERS"/*.h "$HEADERS"/*.hh; do
case $i in
*/rtapi_app.h) continue ;;
*/interp_internal.hh) continue ;;
Expand All @@ -17,5 +17,5 @@ for i in $HEADERS/*.h $HEADERS/*.hh; do
else
ELEVEN=-std=c++0x
fi
g++ ${CPPFLAGS} $ELEVEN -DULAPI -I$HEADERS -E -x c++ $i > /dev/null
g++ ${CPPFLAGS} "$ELEVEN" -DULAPI -I"$HEADERS" -E -x c++ "$i" > /dev/null
done
2 changes: 1 addition & 1 deletion tests/build/ui/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
set -x
g++ -I${HEADERS} \
g++ -I"${HEADERS}" \
nml-position-logger.cc \
-L "${LIBDIR}" -lnml -llinuxcnc \
-o /dev/null
2 changes: 1 addition & 1 deletion tests/interp/compile/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ set -xe

g++ -o use-rs274 use-rs274.cc \
-Wall -Wextra -Wno-return-type -Wno-unused-parameter \
-I $HEADERS $PYTHON_CPPFLAGS -L "$LIBDIR" -Wl,-rpath,$LIBDIR $PYTHON_EXTRA_LDFLAGS $PYTHON_LIBS $PYTHON_EXTRA_LIBS -lrs274
-I "$HEADERS" $PYTHON_CPPFLAGS -L "$LIBDIR" -Wl,-rpath,"$LIBDIR" $PYTHON_EXTRA_LDFLAGS $PYTHON_LIBS $PYTHON_EXTRA_LIBS -lrs274
LD_BIND_NOW=YesPlease ./use-rs274
2 changes: 1 addition & 1 deletion tests/lowlevel/mutex/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
gcc -O -I${HEADERS} test.c -o test -DULAPI -std=gnu99 -pthread || exit 1
gcc -O -I"${HEADERS}" test.c -o test -DULAPI -std=gnu99 -pthread || exit 1
./test; exitval=$?
rm -f test
exit $exitval
4 changes: 2 additions & 2 deletions tests/rtapi_printf.0/test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

g++ -DULAPI -I${HEADERS} -std=c++0x -I${HEADERS} \
-DSIM -rdynamic -L${LIBDIR} \
g++ -DULAPI -I"${HEADERS}" -std=c++0x \
-DSIM -rdynamic -L"${LIBDIR}" \
-o test_rtapi_vsnprintf test_rtapi_vsnprintf.c
./test_rtapi_vsnprintf

0 comments on commit d041fc7

Please sign in to comment.