serenity/Tests
Jelle Raaijmakers 10e8b99038 LibC: Make getopt modify argv again
A POSIX-compatibility fix was introduced in 64740a0214 to make the
compilation of the `diffutils` port work, which expected a
`char* const* argv` signature.

And indeed, the POSIX spec does not mention permutation of `argv`:
https://pubs.opengroup.org/onlinepubs/9699919799/functions/getopt.html

However, most implementations do modify `argv` as evidenced by
documentation such as:
https://refspecs.linuxbase.org/LSB_5.0.0/LSB-Core-generic
    /LSB-Core-generic/libutil-getopt-3.html

  "The function prototype was aligned with POSIX 1003.1-2008 (ISO/IEC
   9945-2009) despite the fact that it modifies argv, and the library
   maintainers are unwilling to change this."

Change the behavior back to permutate `argc` to allow for the following
command line argument order to work again:

  unzip ./file.zip -o target-dir

Without this change, `./file.zip` in the example above would have been
ignored completely.
2021-06-13 17:05:03 +01:00
..
AK AK: Rename Vector::append(Vector) => Vector::extend(Vector) 2021-06-12 13:24:45 +02:00
Kernel Kernel: Ensure that an unveil node with no permission is never accepted 2021-05-29 22:05:34 +02:00
LibC LibC: Implement strerror_r() 2021-05-25 17:36:02 +02:00
LibCompress Tests: Use ByteBuffer::create_zeroed in TestDeflate instead of memset 2021-05-27 15:18:03 +02:00
LibCore LibC: Make getopt modify argv again 2021-06-13 17:05:03 +01:00
LibCpp LibCpp: Add regression tests for the parser 2021-05-19 23:19:07 +02:00
LibELF Tests: Add LibELF tests 2021-05-15 11:02:04 +01:00
LibGfx Tests: Remove default font tests from LibGfx/TestFontHandling 2021-05-21 21:02:43 +02:00
LibJS LibJS: Add all of the WeakMap.prototype methods (delete, get, has, set) 2021-06-12 10:44:28 +01:00
LibM Tests: Establish root Tests directory, move Userland/Tests there 2021-05-06 17:54:28 +02:00
LibPthread LibC: Do not include errno.h inside unistd.h 2021-05-14 22:24:02 +02:00
LibRegex Tests: Free all memory allocated with regcomp in RegexLibC tests 2021-05-14 08:34:00 +01:00
LibSQL LibSQL: Limit the number of nested subqueries 2021-06-08 19:08:13 +02:00
LibWasm LibWasm: Move Wasm::BytecodeInterpreter into its own header 2021-06-05 14:31:54 +04:30
LibWeb AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
UserspaceEmulator LibC: Move mman.h to sys/mman.h 2021-05-14 22:24:02 +02:00
CMakeLists.txt LibWasm+Meta: Add test-wasm and optionally test the conformance tests 2021-05-21 00:15:23 +01:00