testsuites/fstests/fsclose01: Fix expected flags

close() now holds a reference to the IOP this changes the
expected flags in the test. This change reflects that.
Updates #5311
This commit is contained in:
Aaron Nyholm
2025-10-20 08:23:35 +11:00
committed by Gedare Bloom
parent af75447c1a
commit 0e20f50870

View File

@@ -547,7 +547,7 @@ static void test_close(test_context *ctx)
rtems_test_assert(rv == -1);
rtems_test_assert(errno == EBADF);
flags = rtems_libio_iop_flags(iop);
expected_flags = LIBIO_FLAGS_READ_WRITE;
expected_flags = LIBIO_FLAGS_REFERENCE_INC | LIBIO_FLAGS_READ_WRITE;
rtems_test_assert(flags == expected_flags);
rtems_test_assert((iops_free - 1) == free_iops());
break;