Avi Kivity
f2dd31ee76
tests: close file correctly in loading_file_test
...
Otherwise, we crash with --overprovisioned on a use-after-free.
2018-03-19 12:16:11 +02:00
Michael Munday
b68b82dc8d
tests: loading_cache_test: align DMA buffers
...
DMA reads and writes require that data be correctly aligned.
Message-Id: <20171211130202.77608-1-mike.munday@ibm.com >
2017-12-11 15:04:26 +02:00
Jesse Haber-Kucharsky
fb0866ca20
Move thread_local declarations out of main.cc
...
Since `disk-error-handler.hh` defines these global variables `extern`,
it makes sense to declare them in the `disk-error-handler.cc` instead of
`main.cc`.
This means that test files don't have to declare them.
Fixes #2735 .
Signed-off-by: Jesse Haber-Kucharsky <jhaberku@scylladb.com >
Message-Id: <1eed120bfd9bb3647e03fe05b60c871de2df2a86.1511810004.git.jhaberku@scylladb.com >
2017-11-27 20:27:42 +01:00
Vlad Zolotarov
c6c41aa877
tests: loading_cache_test: make it more robust
...
Make sure loading_cache::stop() is always called where appropriate:
regardless whether the test failed or there was an exception during the test.
Otherwise a false-alarm use-after-free error may occur.
Fixes #2955
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
Message-Id: <1510625736-3109-1-git-send-email-vladz@scylladb.com >
2017-11-14 11:35:49 +00:00
Vlad Zolotarov
cea15486c4
tests: loading_cache_test: initial commit
...
Test utils::loading_shared_values and utils::loading_cache.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2017-09-15 22:19:15 -04:00