Skip to content
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

More robust filename comparison on log_elision.c #644

Closed
wants to merge 1 commit into from

Conversation

craigberry
Copy link
Contributor

FILE on VMS includes the absolute path and version number, like so:

DKA0:[CRAIG.freetds-1^.5rc2.src.tds.unittests]log_elision.c;1

which was not matching the sscanf pattern in the test. So just concatenate FILE (after expansion) onto the parts that are stable.

__FILE__ on VMS includes the absolute path and version number, like
so:

DKA0:[CRAIG.freetds-1^.5rc2.src.tds.unittests]log_elision.c;1

which was not matching the sscanf pattern in the test. So just
concatenate __FILE__ (after expansion) onto the parts that are
stable.
@freddy77
Copy link
Contributor

freddy77 commented Mar 28, 2025

Testing a different approach, see cb8eb2a. num_line was not used and somebody could remove TDS_DBGFLAG_SOURCE setting.

@craigberry
Copy link
Contributor Author

cb8eb2a looks like a better way to do it, so I'll close this PR.

@craigberry craigberry closed this Mar 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants