Skip to content

Commit

Permalink
🏁 Should fix windows unit test
Browse files Browse the repository at this point in the history
The falling unit test could be that is reading a junk value of a no
initialized array
  • Loading branch information
Zardoz89 committed Jan 30, 2015
1 parent 7136674 commit 89303a5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/vcomputer_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class VComputer_test : public ::testing::Test {
trillek::DWord addr_id[3];

virtual void SetUp() {
std::memset((void*)rom, 0, 1024);
std::memmove ((void*)rom, (void*)dumy_str, std::strlen(dumy_str));
vc.SetROM(this->rom, 1024);
addr_id[0] = -1;
Expand Down

0 comments on commit 89303a5

Please sign in to comment.