diff options
author | kobalicek <kobalicek.petr@gmail.com> | 2020-11-04 23:16:00 +0300 |
---|---|---|
committer | kobalicek <kobalicek.petr@gmail.com> | 2020-11-07 02:02:16 +0300 |
commit | 88129d738959081276a6cad8a718dfef18d13fe8 (patch) | |
tree | 345fa707f615240b273f82c6bb21d94db1277d32 /test | |
parent | cb13f699837f68c8830ab67462f896c38aca37f0 (diff) |
[Bug] Don't unlink immediately when creating anonymous memory file, switch to GH actions (Fixes #312)
Diffstat (limited to 'test')
-rw-r--r-- | test/asmjit_bench_x86.cpp | 4 | ||||
-rw-r--r-- | test/asmjit_test_compiler.cpp | 4 | ||||
-rw-r--r-- | test/asmjit_test_compiler_x86.cpp | 4 | ||||
-rw-r--r-- | test/asmjit_test_opcode.cpp | 11 |
4 files changed, 14 insertions, 9 deletions
diff --git a/test/asmjit_bench_x86.cpp b/test/asmjit_bench_x86.cpp index 590419c..6f75916 100644 --- a/test/asmjit_bench_x86.cpp +++ b/test/asmjit_bench_x86.cpp @@ -30,10 +30,10 @@ #include <stdio.h> #include <string.h> -#include "./asmjit_test_opcode.h" +#include "asmjit_test_opcode.h" #ifndef ASMJIT_NO_COMPILER - #include "./asmjit_test_misc.h" + #include "asmjit_test_misc.h" #endif using namespace asmjit; diff --git a/test/asmjit_test_compiler.cpp b/test/asmjit_test_compiler.cpp index 6a83e7c..45adb70 100644 --- a/test/asmjit_test_compiler.cpp +++ b/test/asmjit_test_compiler.cpp @@ -30,8 +30,8 @@ #include <memory> #include <vector> -#include "./cmdline.h" -#include "./asmjit_test_compiler.h" +#include "cmdline.h" +#include "asmjit_test_compiler.h" #if defined(ASMJIT_BUILD_X86) && ASMJIT_ARCH_X86 #include <asmjit/x86.h> diff --git a/test/asmjit_test_compiler_x86.cpp b/test/asmjit_test_compiler_x86.cpp index 4caa7d8..bc32314 100644 --- a/test/asmjit_test_compiler_x86.cpp +++ b/test/asmjit_test_compiler_x86.cpp @@ -33,8 +33,8 @@ // Required for function tests that pass / return XMM registers. #include <emmintrin.h> -#include "./asmjit_test_misc.h" -#include "./asmjit_test_compiler.h" +#include "asmjit_test_misc.h" +#include "asmjit_test_compiler.h" #ifdef _MSC_VER // Interaction between '_setjmp' and C++ object destruction is non-portable. diff --git a/test/asmjit_test_opcode.cpp b/test/asmjit_test_opcode.cpp index 939cb78..1cd67e2 100644 --- a/test/asmjit_test_opcode.cpp +++ b/test/asmjit_test_opcode.cpp @@ -31,7 +31,8 @@ #include <stdio.h> #include <stdlib.h> -#include "./asmjit_test_opcode.h" +#include "cmdline.h" +#include "asmjit_test_opcode.h" using namespace asmjit; @@ -63,7 +64,8 @@ struct TestErrorHandler : public ErrorHandler { typedef void (*VoidFunc)(void); -int main() { +int main(int argc, char* argv[]) { + CmdLine cmdLine(argc, argv); TestErrorHandler eh; OpcodeDumpInfo infoList[] = { @@ -74,6 +76,8 @@ int main() { { Environment::kArchX64, true , true } }; + bool quiet = cmdLine.hasArg("--quiet"); + for (uint32_t i = 0; i < ASMJIT_ARRAY_SIZE(infoList); i++) { const OpcodeDumpInfo& info = infoList[i]; @@ -89,7 +93,8 @@ int main() { #ifndef ASMJIT_NO_LOGGING FileLogger logger(stdout); logger.addFlags(FormatOptions::kFlagMachineCode); - code.setLogger(&logger); + if (!quiet) + code.setLogger(&logger); #endif x86::Assembler a(&code); |