Skip to content

Commit 89303a5

Browse files
committed
🏁 Should fix windows unit test
The falling unit test could be that is reading a junk value of a no initialized array
1 parent 7136674 commit 89303a5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/vcomputer_test.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ class VComputer_test : public ::testing::Test {
6161
trillek::DWord addr_id[3];
6262

6363
virtual void SetUp() {
64+
std::memset((void*)rom, 0, 1024);
6465
std::memmove ((void*)rom, (void*)dumy_str, std::strlen(dumy_str));
6566
vc.SetROM(this->rom, 1024);
6667
addr_id[0] = -1;

0 commit comments

Comments
 (0)