diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2023-08-24 17:00:31 -0400 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2023-08-24 17:00:31 -0400 |
| commit | 076e104b8672924c3d80cd1da2fdb5ebee1766ac (patch) | |
| tree | e33a8081c61899c5d1a471401605e55716ca3ff4 /tests | |
| parent | 1cb522b36382381ef3f1494f24b0c6a98f8843a9 (diff) | |
| download | dynamic-extension-076e104b8672924c3d80cd1da2fdb5ebee1766ac.tar.gz | |
Migrated over to using psudb-common utilities/headers
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/testing.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testing.h b/tests/testing.h index 4d49474..bdf4869 100644 --- a/tests/testing.h +++ b/tests/testing.h @@ -17,7 +17,7 @@ #include <fcntl.h> #include "util/types.h" -#include "util/base.h" +#include "psu-util/alignment.h" #include "framework/MutableBuffer.h" #include "framework/RecordInterface.h" @@ -46,14 +46,14 @@ static bool initialize_test_file(std::string fname, size_t page_cnt) goto error; } - page = (char *) aligned_alloc(de::SECTOR_SIZE, de::PAGE_SIZE); + page = (char *) aligned_alloc(psudb::SECTOR_SIZE, psudb::PAGE_SIZE); if (!page) { goto error_opened; } for (size_t i=0; i<=page_cnt; i++) { *((int *) page) = i; - if (write(fd, page, de::PAGE_SIZE) == -1) { + if (write(fd, page, psudb::PAGE_SIZE) == -1) { goto error_alloced; } } |