mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 08:25:20 +09:00
test: add missing return value check in test-dirent-util
CID#1540029
Follow-up for 6a57d86bf9
This commit is contained in:
@@ -23,10 +23,8 @@ TEST (test_dirent_ensure_type) {
|
||||
.d_name = "test",
|
||||
};
|
||||
|
||||
assert_se(de.d_type == DT_UNKNOWN);
|
||||
|
||||
dir_fd = 0;
|
||||
dirent_ensure_type(dir_fd, &de);
|
||||
assert_se(dirent_ensure_type(dir_fd, &de) == -ENOTDIR);
|
||||
|
||||
/* Test when d_name is "." or ".." */
|
||||
strcpy(de.d_name, ".");
|
||||
|
||||
Reference in New Issue
Block a user