5a65fdc11c
My motivation at the moment is that I'm trying to share a git checkout between multiple VMs using VirtualBox's Shared Folders feature. git in the guest VM isn't able to see the executable bits from the host due to the VirtualBox/SMB/CIFS layer. Instead, it thinks text files are non-executable, unless they have a shebang line. That's a sensible way to set the flags anyway, so set them like that. With this commit, there's still one file that isn't handled: src/shared/GetCommitHash.cmd. It's still marked executable, but it lacks a shebang line, so the guest thinks it's non-executable. I'm not sure it should be changed.
32 lines
595 B
C++
32 lines
595 B
C++
#include <windows.h>
|
|
|
|
#include "TestUtil.cc"
|
|
#include "../src/shared/DebugClient.cc"
|
|
|
|
int main(int argc, char *argv[]) {
|
|
if (argc == 1) {
|
|
startChildProcess(L"CHILD");
|
|
return 0;
|
|
}
|
|
|
|
const int WIDTH = 25;
|
|
|
|
setWindowPos(0, 0, 1, 1);
|
|
setBufferSize(WIDTH, 40);
|
|
setWindowPos(0, 0, WIDTH, 20);
|
|
|
|
system("cls");
|
|
|
|
for (int i = 0; i < 100; ++i) {
|
|
printf("FOO(%d)\n", i);
|
|
}
|
|
|
|
repeatChar(5, '\n');
|
|
repeatChar(WIDTH * 5, '.');
|
|
repeatChar(10, '\n');
|
|
setWindowPos(0, 20, WIDTH, 20);
|
|
writeBox(0, 5, 1, 10, '|');
|
|
|
|
Sleep(120000);
|
|
}
|