rm: overriding the libc call when implementation does not match gnu coreutils exactly#9604
rm: overriding the libc call when implementation does not match gnu coreutils exactly#9604ChrisDryden wants to merge 7 commits into
Conversation
|
GNU testsuite comparison: |
1 similar comment
|
GNU testsuite comparison: |
|
sorry, it needs to be rebased |
0e464e9 to
9466d55
Compare
|
GNU testsuite comparison: |
| @@ -5,6 +5,7 @@ | |||
| # spell-checker:ignore (paths) abmon deref discrim eacces getlimits getopt ginstall inacc infloop inotify reflink ; (misc) INT_OFLOW OFLOW | |||
| # spell-checker:ignore baddecode submodules xstrtol distros ; (vars/env) SRCDIR vdir rcexp xpart dired OSTYPE ; (utils) greadlink gsed multihardlink texinfo CARGOFLAGS | |||
| # spell-checker:ignore openat TOCTOU CFLAGS tmpfs gnproc | |||
| # spell-checker:ignore hfsplus casefold chattr dirp memcpy | |||
|
need to be rebased |
9466d55 to
5ae2096
Compare
| # * the selinux crate is handling errors | ||
| # * the test says "maybe we should not fail when no context available" | ||
| sed -i -e "s|returns_ 1||g" tests/cp/no-ctx.sh | ||
| "${SED}" -i -e "s|returns_ 1||g" tests/cp/no-ctx.sh |
Merging this PR will improve performance by 12.07%
Performance Changes
Tip Curious why this is faster? Comment Comparing Footnotes
|
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
|
GNU testsuite comparison: |
This was originally intended to be a demonstration for how we could modify the integration tests to recognize the libc calls we were using.
I discovered that I could wrap the implementation in this helper method to be able to address this tests in a relatively readable way compared to modifying the original code.
As it stands I believe there are three skipped tests in total right now that are skipped for this reason