[llvm] r308069 - [libFuzzer] Allow non-fuzzer args after -ignore_remaining_args=1

Reid Kleckner via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 19 16:30:04 PDT 2017


I fixed things the existing way in r308548.

I would like it if we could avoid problems like this in the future when
people add tests that use the optional hooks. As it stands now, they are
unlikely to discover that every optional hook added to a test needs to be
written down in CMakeLists.txt. We're currently doing things this way to
make the source code of the tests clean and to avoid dependencies on
FuzzerInterface.h. The question is, what do we want to compromise on:
1. Make tests ugly, but cross-platform, and representative of what users
must do to be cross-platform
2. Maintain status quo, tests break every so often, but now maybe we'll
remember why next time
3. Require users to include FuzzerInterface.h, introducing more
dependencies, but it will allow us to magically abstract Windows
portability issues

On Mon, Jul 17, 2017 at 5:58 PM, Kostya Serebryany <kcc at google.com> wrote:

> Let me add
> UNSUPPORTED: windows
>
> On Mon, Jul 17, 2017 at 5:50 PM, Reid Kleckner <rnk at google.com> wrote:
>
>> I didn't have time to get to this today. I can look at it tomorrow. In
>> the meantime, can somebody XFAIL this?
>>
>> On Mon, Jul 17, 2017 at 5:34 PM, Kostya Serebryany <kcc at google.com>
>> wrote:
>>
>>> +rnk
>>>
>>> On Mon, Jul 17, 2017 at 12:25 PM, Justin Bogner <mail at justinbogner.com>
>>> wrote:
>>>
>>>> The output on the bot isn't terribly informative and I don't have a
>>>> windows machine. Could somebody run the failing command for me and paste
>>>> the output? It's as follows:
>>>>
>>>>   "LLVMFuzzer-FlagsTest" "--foo-bar" "-runs=10"
>>>> "-ignore_remaining_args=1" "--baz" "-help=1" "test"
>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170719/8f54a84b/attachment.html>


More information about the llvm-commits mailing list