Skip to content

Commit 3d2336c

Browse files
committed
cpp lldb
1 parent 665c015 commit 3d2336c

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

ci/run_tests.sh

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,10 +164,10 @@ pushd program_with_module
164164
"$fpm" run --target Program_with_module
165165
popd
166166

167-
pushd program_with_cpp_guarded_module
168-
"$fpm" build
169-
"$fpm" run
170-
popd
167+
#pushd program_with_cpp_guarded_module
168+
#"$fpm" build
169+
#"$fpm" run
170+
#popd
171171

172172
pushd link_executable
173173
"$fpm" build
@@ -231,7 +231,18 @@ pushd fpm_test_exe_issues
231231
popd
232232

233233
pushd cpp_files
234-
"$fpm" test
234+
235+
# Build with debug & no inlining so the backtrace is readable
236+
# Build with symbols
237+
export FPM_FFLAGS="-g -O0 -fbacktrace -fno-omit-frame-pointer"
238+
export FPM_CXXFLAGS="-g -O0 -fno-omit-frame-pointer"
239+
export FPM_CFLAGS="-g -O0 -fno-omit-frame-pointer"
240+
export FPM_LDFLAGS="-g"
241+
242+
# Now run tests under LLDB
243+
fpm test \
244+
--runner "lldb -o 'run' -o 'bt all' -o 'thread list' -o 'image list' -o 'quit' --"
245+
235246
popd
236247

237248
# Test Fortran features

0 commit comments

Comments
 (0)