Skip to content

Update getdents_syscall tests and comments#286

Merged
rennergade merged 8 commits intodevelopfrom
getdents
Jul 9, 2024
Merged

Update getdents_syscall tests and comments#286
rennergade merged 8 commits intodevelopfrom
getdents

Conversation

@rupeshkoushik07
Copy link
Copy Markdown
Member

@rupeshkoushik07 rupeshkoushik07 commented Jun 30, 2024

Description

This PR adds comments and tests to getdents_syscall

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Test A - lind_project/tests/test_cases/test_a.c
  • Test B - lind_project/tests/test_cases/test_b.c

Checklist:

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • Any dependent changes have been added to a pull request and/or merged in other modules (native-client, lind-glibc, lind-project)

@rupeshkoushik07 rupeshkoushik07 marked this pull request as draft June 30, 2024 11:38
@rennergade rennergade requested a review from qianxichen233 June 30, 2024 19:23
Comment thread src/tests/fs_tests.rs
Comment thread src/tests/fs_tests.rs Outdated
Comment thread src/tests/fs_tests.rs Outdated
Comment thread src/safeposix/syscalls/fs_calls.rs
@rupeshkoushik07 rupeshkoushik07 marked this pull request as ready for review July 3, 2024 09:30
Copy link
Copy Markdown
Contributor

@yashaswi2000 yashaswi2000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

let mut vec_filename: Vec<u8> = filename.as_bytes().to_vec();
vec_filename.push(b'\0'); // make filename null-terminated

// Push DT_UNKNOWN as d_type. This is a placeholder for now, as the actual file type is not yet determined.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some weird whitespace here, have you done a cargo fmt?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes even with cargo fmt the whitespace is there

Comment thread src/safeposix/syscalls/fs_calls.rs Outdated
@rennergade
Copy link
Copy Markdown
Contributor

Some weird formatting things that I'd like you to take a quick look at but otherwise this is GTG

Copy link
Copy Markdown
Contributor

@rennergade rennergade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

@rennergade rennergade merged commit c3c1424 into develop Jul 9, 2024
Anway-Agte pushed a commit that referenced this pull request Jul 15, 2024
* add tests and comments

* change sem comment

* update

* update comments

* update tests

* update format

* update format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants