Skip to content

Commit 327b6cc

Browse files
committed
Fix the find_qmlimporter_path test on FreeBSD
The qmlimportscanner executable is not necessarily located in /usr/bin across all OSes, so only check that we located an executable with a fitting name.
1 parent 020b5d7 commit 327b6cc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

lib/linuxdeploy

tests/test_deploy_qml.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,9 @@ namespace linuxdeploy {
5252

5353
TEST_F(TestDeployQml, find_qmlimporter_path) {
5454
auto result = findQmlImportScanner();
55-
std::filesystem::path expected = "/usr/bin/qmlimportscanner";
5655

5756
ASSERT_FALSE(result.empty());
58-
ASSERT_EQ(result.string(), expected.string());
57+
ASSERT_EQ(result.filename().string(), "qmlimportscanner");
5958
}
6059

6160
TEST_F(TestDeployQml, runQmlImportScanner) {

0 commit comments

Comments
 (0)