Skip to content

Commit 1b7cb00

Browse files
committed
fix tests
1 parent 233a90b commit 1b7cb00

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_cmake_dispatch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ else
6565
fi
6666

6767
# Compare output with Makefile reference
68-
CMAKE_BIN=$(find "$BUILD_DIR" -name 'abpoa' -type f -perm +111 | head -1)
68+
CMAKE_BIN=$(find "$BUILD_DIR" -name 'abpoa' -type f -exec test -x {} \; -print | head -1)
6969
if [ -z "$CMAKE_BIN" ]; then
7070
echo "FAIL: abpoa binary not found in CMake build"
7171
ERRORS=$((ERRORS + 1))

tests/test_cmake_lib_only.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ else
3232
fi
3333

3434
# Binary must NOT exist
35-
if find "$BUILD_DIR" -name 'abpoa' -type f -perm +111 | grep -q .; then
35+
if find "$BUILD_DIR" -name 'abpoa' -type f -exec test -x {} \; -print | grep -q .; then
3636
echo "FAIL: abpoa binary found in lib-only build (should be disabled)"
3737
ERRORS=$((ERRORS + 1))
3838
fi
@@ -50,7 +50,7 @@ if ! cmake --build "$BUILD_DIR2" -j$(sysctl -n hw.logicalcpu 2>/dev/null || npro
5050
exit 1
5151
fi
5252

53-
if ! find "$BUILD_DIR2" -name 'abpoa' -type f -perm +111 | grep -q .; then
53+
if ! find "$BUILD_DIR2" -name 'abpoa' -type f -exec test -x {} \; -print | grep -q .; then
5454
echo "FAIL: abpoa binary not found in default build (should be built)"
5555
ERRORS=$((ERRORS + 1))
5656
fi

0 commit comments

Comments
 (0)