This commit is contained in:
2025-03-01 13:43:19 +01:00
parent b5c81c5316
commit b7220dcef2
2 changed files with 3 additions and 9 deletions

View File

@@ -97,6 +97,6 @@ jobs:
# Test the engine # Test the engine
- name: Test Vulkan - name: Test Vulkan
run: | run: |
xmake config --vulkan-tests=y --yes xmake config --vulkan-tests=y --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} ${{ matrix.confs.config }} --ccache=n --unitybuild=y --yes
xmake build --yes VulkanUnitTests xmake build --yes VulkanUnitTests
xmake run --yes VulkanUnitTests xmake run --yes VulkanUnitTests

View File

@@ -9,11 +9,13 @@ static size_t trace_count = 0;
void ErrorCallback(void* data, const char* msg, int errnum) void ErrorCallback(void* data, const char* msg, int errnum)
{ {
(void)data;
fprintf(stderr, "Error in backtrace: %s (error %d)\n", msg, errnum); fprintf(stderr, "Error in backtrace: %s (error %d)\n", msg, errnum);
} }
int SymbolCallback(void* data, unsigned long pc, const char* filename, int lineno, const char* function) int SymbolCallback(void* data, unsigned long pc, const char* filename, int lineno, const char* function)
{ {
(void)data;
if(filename && function) if(filename && function)
fprintf(stderr, "\t#%zu\033[1;34m 0x%lx\033[1;0m in\033[1;33m %s() from %s:%d\033[1;0m\n", trace_count, pc, function, filename, lineno); fprintf(stderr, "\t#%zu\033[1;34m 0x%lx\033[1;0m in\033[1;33m %s() from %s:%d\033[1;0m\n", trace_count, pc, function, filename, lineno);
else if(function) else if(function)
@@ -53,11 +55,3 @@ int main(void)
TestPipeline(); TestPipeline();
return UNITY_END(); return UNITY_END();
} }
/*
#0 0x00007ffff79ad624 in ?? () from /usr/lib/libc.so.6
#1 0x00007ffff7953ba0 in raise () from /usr/lib/libc.so.6
#2 0x000055555560ec86 in TestPipelineReadOnlyBindings () at Tests/Vulkan/Pipeline.c:54
#3 0x000055555560f682 in TestPipeline () at Tests/Vulkan/Pipeline.c:228
#4 0x000055555560ea01 in main () at Tests/Vulkan/main.c:46
*/