Browse Source

Clarify error, add Introspection to full test

windows-imgui
Macoy Madson 5 months ago
parent
commit
fdfcadda9d
  1. 1
      src/Introspection.cake
  2. 3
      test/src/GameLibTests.cake

1
src/Introspection.cake

@ -902,6 +902,7 @@
(var in-file (* FILE) (fopen "Errors.cakedata" "r"))
(unless in-file (return 1))
(var file-contents (* (const char)) (read-file-into-memory in-file))
(fprintf stderr "note: I expect to fail to read struct from Errors.cakedata\n")
(when (read-introspect-struct-s-exp (addr my-struct--metadata) (addr read-struct)
file-contents malloc)
(fprintf stderr "error: expected to fail to read struct from Errors.cakedata\n")

3
test/src/GameLibTests.cake

@ -66,7 +66,8 @@
(array platform-config
"../src/AutoTest.cake" "../src/SDL.cake" "../src/Math.cake"
"../src/Aubio.cake" "../src/ImGui.cake" "../src/Dictionary.cake"
"../src/DynamicArray.cake" "../src/OpenGL.cake" "../src/Tracy.cake"))
"../src/DynamicArray.cake" "../src/Introspection.cake" "../src/OpenGL.cake"
"../src/Tracy.cake"))
;; Because auto-instrumentation does not play nice with AutoTest
(gamelib-run-test "Profiler auto-instrument"

Loading…
Cancel
Save