mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 02:33:06 +01:00
[JITLink] Suppress expect-death test in release mode.
This commit is contained in:
parent
701a7ca441
commit
9ee7d4ffa3
@ -153,10 +153,12 @@ TEST(LinkGraphTest, ContentAccessAndUpdate) {
|
||||
<< "Unexpected block content size";
|
||||
|
||||
// Expect that attempting to get already-mutable content fails if the
|
||||
// content is not yet mutable.
|
||||
// content is not yet mutable (debug builds only).
|
||||
#ifndef NDEBUG
|
||||
EXPECT_DEATH({ (void)B.getAlreadyMutableContent(); },
|
||||
"Content is not mutable")
|
||||
<< "Unexpected mutable access allowed to immutable data";
|
||||
#endif
|
||||
|
||||
// Check that mutable content is copied on request as expected.
|
||||
auto MutableContent = B.getMutableContent(G);
|
||||
|
Loading…
Reference in New Issue
Block a user