[Reproducers] Fix reproducer unittest
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 8 May 2019 22:59:35 +0000 (22:59 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 8 May 2019 22:59:35 +0000 (22:59 +0000)
commitfad8fb8032032e0609ad553b6498a79dad96a54d
tree9e044d9d7f29ae43265d519ec671de6ad58b508c
parent44dd05c31baf7d2e76f1a418b5e935d1919cec01
[Reproducers] Fix reproducer unittest

I think the recent change to flush the SB API recording uncovered a real
issue on the Windows bot. Although I couldn't make much sense of the
error message "unknown file: error: SEH exception with code 0x3221225477
thrown in the test body.", it prompted me to look at the test. In the
unit test we were recording during replay, which is obviously not
correct. I think we didn't see this issue before because we flushed once
after the recording was done. This patch unsets the recording  logic
during the replay part of the test.

Hopefully this fixed the Windows bot.

llvm-svn: 360298
lldb/unittests/Utility/ReproducerInstrumentationTest.cpp