aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authordec05eba <0xdec05eba@gmail.com>2018-09-24 15:19:56 +0200
committerdec05eba <0xdec05eba@gmail.com>2018-09-24 15:25:04 +0200
commit0ebcfc62e435d352b4a2035ac1791b867228194d (patch)
tree9ac0ec31283ab4e67b60df60edc88bb6e8b310d3 /tests
parent2698cbc14f8a2a108a3252f03e053cb47b8b5101 (diff)
Escape input arg, which usually is a filename
Diffstat (limited to 'tests')
-rw-r--r--tests/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.cpp b/tests/main.cpp
index f0a9b5c..e89eb19 100644
--- a/tests/main.cpp
+++ b/tests/main.cpp
@@ -25,7 +25,7 @@ int main(int argc, char **argv)
NinjaArgValue argsValue = { argsVar, "$globalIncDir -std=c++14 -pedantic -fpie -MMD -MP '-Itest@exe' '-I..' -Wall -Wextra -Werror=return-type -fdiagnostics-show-option '-fdiagnostics-color=always' '-pipe' '-D_FILE_OFFSET_BITS=64' '-Winvalid-pch' -fstack-protector '-Og' -fexceptions -Wnon-virtual-dtor -g3 -D_FORTIFY_SOURCE=2 -D_GLIBCXX_ASSERTIONS -fasynchronous-unwind-tables" };
- compileCppRule->build("../../main.cpp", "test@exe/main.cpp.o", { argsValue });
+ compileCppRule->build("../../ma in\".cpp", "test@exe/main.cpp.o", { argsValue });
NinjaArgValue linkArgsValue = { linkArgsVar, "-Wl,--no-undefined,--as-needed -ldl -lm -pthread -pthread \"/home/dec05eba/git/libninja/sibs-build/debug/liblibninja.so\"" };
buildExeRule->build("test@exe/main.cpp.o", "test", { argsValue });