Skip to content

Commit

Permalink
ltp: modify user code for fdcheck compatibility
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 authored and guoshichao committed Aug 31, 2023
1 parent bff113e commit 936342d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
int main(void)
{
/* Use some arbitrary but high number for the descriptor. */
if (mq_close((mqd_t) 274) != -1) {
if (mq_close((mqd_t) (OPEN_MAX - 1)) != -1) {
printf("mq_close() did not return -1 on invalid descriptor\n");
printf("Test FAILED\n");
return PTS_FAIL;
Expand Down

0 comments on commit 936342d

Please sign in to comment.