Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
janekmi committed Sep 27, 2024
1 parent 48d133f commit 107eaed
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/daos_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
permissions: {}

env:
DAOS_BUILD: 0
DAOS_BUILD: 1
DAOS_PATH: /opt/daos/

jobs:
Expand Down
13 changes: 13 additions & 0 deletions src/test/daos_dtx/09_fix_size_t_from_int.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/src/include/daos_types.h b/src/include/daos_types.h
index 6db21423ce..0b2d16834b 100644
--- a/src/include/daos_types.h
+++ b/src/include/daos_types.h
@@ -240,7 +240,7 @@ static inline bool
daos_is_valid_uuid_string(const char *uuid)
{
const char *p;
- int len = DAOS_UUID_STR_SIZE - 1; /* Not include the terminated '\0' */
+ size_t len = DAOS_UUID_STR_SIZE - 1; /* Not include the terminated '\0' */
int i;

if (strnlen(uuid, len) != len)
4 changes: 3 additions & 1 deletion src/test/daos_dtx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,6 @@ in the respective teardown.
- `07_disable_ABT_init.patch` which:
- prevents ABT from screwing with Valgrind
- `08_cmocka_filter_fix.patch` which:
- fix cmocka's filter (invalid size calculation)
- fixes cmocka's filter (invalid size calculation)
- `09_fix_size_t_from_int.patch` which:
- fixes conversion to size_t from int

0 comments on commit 107eaed

Please sign in to comment.