Skip to content
Snippets Groups Projects
Verified Commit eae28f6d authored by Jeremy Soller's avatar Jeremy Soller
Browse files

Fix scandir test on Redox

parent 5c0b37a2
No related branches found
No related tags found
No related merge requests found
......@@ -17,7 +17,14 @@ int main(void) {
UNEXP_IF(scandir, len, < 0);
for(int i = 0; i < len; i += 1) {
puts(array[i]->d_name);
// TODO: Redox does not yet provide . or .. - so filter them out
// in order to make output match on all systems
if (
strcmp(array[i]->d_name, ".") != 0 &&
strcmp(array[i]->d_name, "..") != 0
) {
puts(array[i]->d_name);
}
free(array[i]);
}
free(array);
......
.
..
1-never-gonna-give-you-up
2-never-gonna-let-you-down
4-and-desert-you
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment