diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-08-02 17:33:19 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-08-02 17:33:19 +0000 |
commit | 005b7ed8f76756d94ef6266ded755ab7863cb936 (patch) | |
tree | de2aa8f0c2f604d3b4f81a94dd20ea0c50bf1e68 /test/xray/TestCases/Posix/profiling-multi-threaded.cc | |
parent | 93c1b73a09a52d4a265f683bf1954b08bb430049 (diff) | |
download | src-test2-005b7ed8f76756d94ef6266ded755ab7863cb936.tar.gz src-test2-005b7ed8f76756d94ef6266ded755ab7863cb936.zip |
Vendor import of compiler-rt trunk r338536:vendor/compiler-rt/compiler-rt-trunk-r338536
Notes
Notes:
svn path=/vendor/compiler-rt/dist/; revision=337141
svn path=/vendor/compiler-rt/compiler-rt-trunk-r338536/; revision=337142; tag=vendor/compiler-rt/compiler-rt-trunk-r338536
Diffstat (limited to 'test/xray/TestCases/Posix/profiling-multi-threaded.cc')
-rw-r--r-- | test/xray/TestCases/Posix/profiling-multi-threaded.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/xray/TestCases/Posix/profiling-multi-threaded.cc b/test/xray/TestCases/Posix/profiling-multi-threaded.cc index 7ccad1bac1fd..45e5e70226da 100644 --- a/test/xray/TestCases/Posix/profiling-multi-threaded.cc +++ b/test/xray/TestCases/Posix/profiling-multi-threaded.cc @@ -51,7 +51,8 @@ volatile int buffer_counter = 0; assert(__xray_log_finalize() == XRayLogInitStatus::XRAY_LOG_FINALIZED); assert(__xray_log_process_buffers(process_buffer) == XRayLogFlushStatus::XRAY_LOG_FLUSHED); - // We're running three threds, so we expect three buffers. - assert(buffer_counter == 3); + // We're running three threads, so we expect four buffers (including the file + // header buffer). + assert(buffer_counter == 4); assert(__xray_log_flushLog() == XRayLogFlushStatus::XRAY_LOG_FLUSHED); } |