fix typos, add tests#9
Conversation
e2d9975 to
203b924
Compare
|
Hi @msimerson, I ran the full test suite on FreeBSD 15.0-CURRENT (Clang 19.1.7), including the strict Valgrind configurations. Results:
The changes to strcmp() for exact matching resolve the previous partial-match issue, and the updated memory handling with the cleanup pattern appears solid in testing. Attaching the full Valgrind logs from the strict run for reference. Log summary: Thanks for the improvements — this addresses issues #8 and #6 cleanly. |
|
I've been away the last few days but I just started looking at this. However, I've already done some refactoring which should render a bit of this PR unrelated but from a quick glance, some of these would be nice to add. I'll need to learn how to cherry pick on GitHub. |
Great, your refactoring did solve the memory leak issues. I've rebased this against your branch so it once again merges cleanly. If you tell me which parts of this PR you don't want, I can remove them. |
|
Honestly, it's been a while (years) since I've done "complicated" git things like rebase and cherry pick because (being mostly solo) I adopted a far "straighter path" (hell, I could probably replace So, I pulled in your branch to my local repo and I was just thinking about cherry picking manually from my local. *shrug* Take for example the YAML file you made: that would be a simple, frictionless add but if I cherry pick, does that retain your authorship? I'm hesitating doing anything--even pushing updates I've done--because I don't really want to claim authorship of something you've done. NOTE: I pulled the PR locally by something like: The simple stuff/adds aside (I'm sure those can be rebased without a problem), some of the refactoring you did I do have questions on. -e.g. the refactor of my hand rolled Again, sorry, please forgive my lack of GitHub expertise but I really don't want to step on anyone's toes. |
Funny you mention
PR updated to use |
|
lol ...no, don't add?! We need to remove before we can add. Besides I've added a new "feature" to handle indented key/value strings (like in the case of a jail.conf) and I've moved some code around a bit so I don't feel safe merging anything in I hand rolled the option parser because it was/is/are dead simple options (it was faster and easier). Yes, I know what Is it possible to split this up into smaller chunks and/or pick some areas to focus on instead of big reactors? I can start cherry picking some of the low hanging fruit or...whatever. |
- add GHA workflow on macos - ctags not required
|
FYI: I'm cleaning and pushing some changes now. I'm about to push the indented key/values change now. I'll stop adding/fixing so we can get this PR done. |
|
You do you, I'm breaking this into smaller PRs for you. It's quite reasonable for a maintainer to want small discreet PRs that are easier to review and merge. |
|
latest fixes/updates pushed. I'm not worried about the getopt(), memory, or whatever stuff right now. |
|
#11 is already open. |
|
you're fast. BTW, I'm really not liking GitHub that much. So confusing sometimes. |
|
GitHub, or git? Some decades ago, moving over to git was...a learning experience that lasted some 15 years or so and counting. It's a great tool, but it's got TOO many features, too many ways to do the same thing, and too many sharp edges. Wait, am I talking about git or GitHub again? 🤪 |
|
git is *meh* these days for me. I have to refer to my helper file for most of the stuff that isn't "add", "commit", "log", "push" or "pull". :) GitHub is crazy. I can't find anything and I'm afraid to click buttons. |
|
Ask for help. :-) There's a LOT of us that have been here for longer than we'd like to admin. I'm off to the gym, I'll push a few more small tidy PRs when I get back. |
|
yeah, I'm off too. I have two kids to maintain. |
Fixes #8 and #6
Changed in src/parse-config.c:
This prevents incorrect matches like 'keymap' matching 'keymaps'.
Refactored in src/sysconf.c:
Memory leaks
Workflow
make test@JohnKaul and/or @pr9000, can one of you run valgrind against this? I've run
leaksagainst it and it passes.