Skip to content

Conversation

@glankk
Copy link
Contributor

@glankk glankk commented Jun 12, 2025

The issue is caused by false matches in getFileIdPath, which this fixes. This PR also adds two tests related to path resolution and matching, one for this particular issue of false positives and another one to detect false negatives on case-insensitive systems, which would result in #pragma once breaking. I added them both in this PR because they're related, but I can move the second test to another PR if that's preferable.

@glankk
Copy link
Contributor Author

glankk commented Jun 12, 2025

Tests are failing due to an unrelated issue in testrunner where the TokenList's in the filedata map aren't destroyed after preprocessing.

@danmar
Copy link
Owner

danmar commented Jun 13, 2025

Tests are failing due to an unrelated issue in testrunner where the TokenList's in the filedata map aren't destroyed after preprocessing.

I expect that you will look into it and make sure CI is green.

@danmar
Copy link
Owner

danmar commented Jun 13, 2025

I feel that the testsuite folder should ideally be removed and that we move such tests to python instead.

@glankk
Copy link
Contributor Author

glankk commented Jun 13, 2025

I've moved the tests to integration_test.py.

@danmar danmar merged commit 8e5c5f4 into danmar:master Jun 16, 2025
16 checks passed
@glankk glankk deleted the path_tests branch June 29, 2025 00:34
@firewave firewave mentioned this pull request Sep 10, 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