This patch fixes the windows failures introduced by `addb514`: http://lab.llvm.org:8011/builders/lldb-x64-windows-ninja/builds/18671/steps/test/logs/stdio This macro, used in the test to check the platform, was missing a `_`, making the test behave like it was run from a UNIX platform. Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
25 lines
491 B
C
25 lines
491 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
if (argc < 3) {
|
|
fprintf(stderr, "ERROR: Too few arguments (count: %d).\n", argc - 1);
|
|
exit(1);
|
|
}
|
|
|
|
#if defined(_WIN32) || defined(_WIN64)
|
|
char *cmd_opt = "/C";
|
|
#else
|
|
char *cmd_opt = "-c";
|
|
#endif
|
|
|
|
if (strncmp(argv[1], cmd_opt, 2)) {
|
|
fprintf(stderr, "ERROR: Missing shell command option ('%s').\n", cmd_opt);
|
|
exit(1);
|
|
}
|
|
|
|
printf("SUCCESS: %s\n", argv[0]);
|
|
return 0;
|
|
}
|