Skip to content

Commit

Permalink
Don't call reboot during a unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed Apr 3, 2016
1 parent aa67aff commit 1b9c418
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/erlinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,10 @@ int main(int argc, char *argv[])
sleep(5);
}

#ifndef UNITTEST
// Reboot/poweroff/halt
reboot(desired_reboot_cmd);
#endif

// If we get here, oops the kernel.
return 0;
Expand Down

0 comments on commit 1b9c418

Please sign in to comment.