Abhishekmishra2808 commented on code in PR #3677:
URL: https://github.com/apache/nuttx-apps/pull/3677#discussion_r3683297676
##########
testing/ostest/Kconfig:
##########
@@ -124,12 +124,17 @@ config TESTING_OSTEST_MULTIUSER
bool "Multi-user identity and permission tests"
default n
depends on SCHED_USER_IDENTITY
+ select LIBC_PASSWD_FILE
Review Comment:
done
##########
testing/ostest/multiuser.c:
##########
@@ -239,6 +251,26 @@ static int mu_verify_owner(FAR struct mu_ctx_s *ctx, FAR
const char *path,
return 0;
}
+static void mu_verify_mode(FAR struct mu_ctx_s *ctx, FAR const char *path,
+ mode_t mode)
+{
+ struct stat st;
+
+ if (stat(path, &st) != 0)
+ {
+ mu_fail(ctx, "stat(%s) after create errno=%d", path, errno);
+ }
+ else if ((st.st_mode & 0777) != mode)
+ {
+ mu_fail(ctx, "%s mode expected %04o got %04o", path,
+ (unsigned int)mode, (unsigned int)(st.st_mode & 0777));
+ }
+ else
+ {
+ mu_pass("%s mode %04o", path, (unsigned int)mode);
Review Comment:
removed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]