Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwightguth committed Sep 12, 2024
1 parent ca77336 commit 60a10ee
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions unittests/runtime-collections/lists.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ block *DUMMY1 = &D1;
}

bool gc_enabled;
size_t get_gc_threshold() {
return SIZE_MAX;
}

BOOST_AUTO_TEST_SUITE(ListTest)

Expand Down
4 changes: 4 additions & 0 deletions unittests/runtime-ffi/ffi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,10 @@ bool during_gc() {
return false;
}

size_t get_gc_threshold() {
return SIZE_MAX;
}

void print_configuration_internal(
writer *file, block *subject, char const *sort, bool, void *) { }
void sfprintf(writer *, char const *, ...) { }
Expand Down
4 changes: 4 additions & 0 deletions unittests/runtime-io/io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ bool during_gc() {

void add_hash64(void *, uint64_t) { }

size_t get_gc_threshold() {
return SIZE_MAX;
}

void flush_io_logs();
string *make_string(const KCHAR *, int64_t len = -1);
blockheader header_err();
Expand Down
4 changes: 4 additions & 0 deletions unittests/runtime-strings/stringtest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ floating *move_float(floating *i) {

void add_hash64(void *, uint64_t) { }

size_t get_gc_threshold() {
return SIZE_MAX;
}

struct blockheader get_block_header_for_symbol(uint32_t tag) {
return blockheader{tag};
}
Expand Down

0 comments on commit 60a10ee

Please sign in to comment.