summaryrefslogtreecommitdiffstats
path: root/libcxx/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2018-02-08 10:37:23 +0000
committerPavel Labath <labath@google.com>2018-02-08 10:37:23 +0000
commit014e4654d496a7c6dfeb28903079bd324c16fc2b (patch)
tree54a8332cad068222adf099b668df5e3d528f2b59 /libcxx/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp
parentc8016e7a65ffc6f0266845c4674f7a08dffff3ea (diff)
downloadbcm5719-llvm-014e4654d496a7c6dfeb28903079bd324c16fc2b.tar.gz
bcm5719-llvm-014e4654d496a7c6dfeb28903079bd324c16fc2b.zip
Rewrite the flaky test_restart_bug test in a more deterministic way
Summary: The test was trying to reproduce a bug in handling of two concurrent events, which was impossible to do reliably in a black-box style test. In practice, this meant the test was only ever failing on remote targets, as these were slow enough to trigger this. Fortunately, we now have the ability to mock the server side of the connection, which means we can simulate the failure deterministically, so I rewrite the test to use the new gdb-client framework. I've needed to add a couple of new packets to the mock server to be able to do this. Instead of trying to guess how a "typical" gdb-client test will want to handle this, I throw an exception in the implementation to force the user to override them (the packets are only sent if the test explicitly performs some action which will trigger them, so a basic test which e.g. does not need the "continue" functionality will not need to implement them). Reviewers: owenpshaw Subscribers: srhines, lldb-commits Differential Revision: https://reviews.llvm.org/D42959 llvm-svn: 324590
Diffstat (limited to 'libcxx/test/std/numerics/numarray/template.valarray/valarray.assign/copy_assign.pass.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud