From 27f0fdd4a94e4bbba563babf354e9c171acd4184 Mon Sep 17 00:00:00 2001 From: guzhihao4 Date: Thu, 30 Mar 2023 18:32:40 +0800 Subject: [PATCH] Fix llvm15 build Issue: #I6ID6E Signed-off-by: guzhihao4 Change-Id: I04bb940c47c2c3df7aafba8c3f5b7abdf4426cfc --- .../conformance/interfaces/sigprocmask/4-1.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/4-1.c b/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/4-1.c index fac3229..0b38ea6 100755 --- a/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/4-1.c +++ b/testcases/open_posix_testsuite/conformance/interfaces/sigprocmask/4-1.c @@ -59,7 +59,7 @@ int main(void) return PTS_UNRESOLVED; } - if ((raise(SIGABRT) == -1) | (raise(SIGUSR2) == -1)) { + if ((raise(SIGABRT) == -1) || (raise(SIGUSR2) == -1)) { perror("Unexpected error while attempting to setup test " "pre-conditions"); return PTS_UNRESOLVED; @@ -76,7 +76,7 @@ int main(void) } if ((sigismember(&pending_set, SIGABRT) != - 1) | (sigismember(&pending_set, SIGUSR2) != 1)) { + 1) || (sigismember(&pending_set, SIGUSR2) != 1)) { perror("FAIL: sigismember did not return 1\n"); return PTS_UNRESOLVED; } -- GitLab