Skip to content

runtests -g does not work for bundled libtests #16893

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bagder opened this issue Apr 1, 2025 · 1 comment
Closed

runtests -g does not work for bundled libtests #16893

bagder opened this issue Apr 1, 2025 · 1 comment
Labels

Comments

@bagder
Copy link
Member

bagder commented Apr 1, 2025

I did this

I built curl with configure using --disable-shared --enable-debug --enable-unity --enable-test-bundles among other things.

The keys are: static lib, debug, unity build and test bundle.

I build curl and the tests. I then want to run a libtest using gdb. Let's say test 1940:

$ cd tests
$ ./runtests.pl 1940
[...]
test 1940...[curl_easy_header]
s------emv- OK (1   out of 1  , remaining: 00:00, took 1.649s, duration: 00:01)
TESTDONE: 1 tests were considered during 2 seconds.
TESTDONE: 1 tests out of 1 reported OK: 100%

$ ./runtests.pl -g 1940
./libtest/libtests lib1940: No such file or directory.
Argument list to give program being debugged when it is started is "http://127.0.0.1:44547/1940".

I expected the following

When not doing bundled tests, this let's me set a break-point in test, do run and then single-step forward from the break-point.

curl/libcurl version

current master

operating system

all

@vszakats
Copy link
Member

vszakats commented Apr 1, 2025

Does this fix it for you?: #16898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants