diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c index bc7776f2b3d3..f00d18174f18 100644 --- a/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c +++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/sysmsg.c @@ -11,6 +11,7 @@ int main() { int msgq = msgget(IPC_PRIVATE, 0666); + if (msgq == -1) perror("msgget:"); assert(msgq != -1); struct msg_s {