Fix llvm15 build

Issue: #I6ID6E

Signed-off-by: guzhihao4 <guzhihao4@huawei.com>
Change-Id: I04bb940c47c2c3df7aafba8c3f5b7abdf4426cfc
This commit is contained in:
guzhihao4
2023-03-30 18:32:40 +08:00
parent d65c28044a
commit ff90e8c47a
@@ -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;
}