Skip to content

Commit

Permalink
EDMA[Tests]:
Browse files Browse the repository at this point in the history
1. Make some small changes to the test so it will not exit on a read failure.
2. chmod +x run_unit_test.sh
  • Loading branch information
levinale authored and AWSsunandaj committed Apr 19, 2017
1 parent 9047741 commit a6f62c0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions sdk/linux_kernel_drivers/edma/unit-test/mt_read_write.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include<pthread.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
Expand Down Expand Up @@ -86,7 +86,10 @@ void* doWrite(void *arg)
printf("wrote %u bytes\n", ret);

if(ret != write_size)
exit(1);
{
printf("write ret value was %d\n", ret);
ret = 0;
}

offset += ret;
written_no_fsync += ret;
Expand Down Expand Up @@ -138,7 +141,10 @@ void* doRead(void *arg)
printf("\nRead %d bytes \n", ret, size_of_data);

if(ret != read_size)
exit(2);
{
printf("Read ret value was %d\n", ret);
ret = 0;
}

offset += ret;

Expand Down
Empty file modified sdk/linux_kernel_drivers/edma/unit-test/run_unit_test.sh
100644 → 100755
Empty file.

0 comments on commit a6f62c0

Please sign in to comment.