Skip to content

Commit a1d4d67

Browse files
committed
Fix CI failure:
1. Add hell_fpm_path to run_tests.sh; 2. Rm unused `file_not_found_error` reference; 3. Update `fpm_filesystem::dirname`.
1 parent c6a45c0 commit a1d4d67

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

ci/run_tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,5 +118,9 @@ pushd c_main
118118
"$fpm" run
119119
popd
120120

121+
pushd hello_fpm_path
122+
"$fpm" run
123+
popd
124+
121125
# Cleanup
122126
rm -rf ./*/build

src/fpm/manifest.f90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module fpm_manifest
1414
use fpm_manifest_library, only : library_config_t
1515
use fpm_mainfest_preprocess, only : preprocess_config_t
1616
use fpm_manifest_package, only : package_config_t, new_package
17-
use fpm_error, only : error_t, fatal_error, file_not_found_error
17+
use fpm_error, only : error_t, fatal_error
1818
use fpm_toml, only : toml_table, read_package_file
1919
use fpm_manifest_test, only : test_config_t
2020
use fpm_filesystem, only: join_path, exists, dirname, is_dir

src/fpm_filesystem.F90

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ function dirname(path) result (dir)
219219
character(:), allocatable :: dir
220220

221221
dir = path(1:scan(path,'/\',back=.true.))
222-
if (len_trim(dir) == 0) dir = "."
223222

224223
end function dirname
225224

0 commit comments

Comments
 (0)