Skip to content

fix: allow asserting pointers to const data

c75fea8
Select commit
Loading
Failed to load commit list.
Open

Allow to assert on const data #554

fix: allow asserting pointers to const data
c75fea8
Select commit
Loading
Failed to load commit list.
Cirrus CI / Debian (gcc) failed Mar 20, 2025 in 1m 12s

Task Summary

Instruction test failed in 00:07

Details

⚠️ Not enough compute credits to prioritize tasks!

✅ 00:00 clone
✅ 00:42 setup
✅ 00:01 python_env_setup
✅ 00:01 info
✅ 00:05 configure
✅ 00:10 compile
❌ 00:07 test

-  [----]     actual: @1
-  [----]     reference: nullptr
+  [----]     actual: 0x1
+  [----]     reference: 0
   [----]   gt(ptr, (void *) 0, (void *) 1): 
-  [----]     actual: nullptr
-  [----]     reference: @1
+  [----]     actual: 0
+  [----]     reference: 0x1
   [----]   ge(ptr, (void *) 0, (void *) 1): 
-  [----]     actual: nullptr
-  [----]     reference: @1
+  [----]     actual: 0
+  [----]     reference: 0x1
   [----] failmessages.cc:191: Assertion Failed
   [----]   lt(str, "cba", "abc"): 
   [----]     actual: "cba"
@@ -875,7 +875,7 @@
   [----]     diff: [-0-]{+0.333333+}
   [----] failmessages.cc:96: Assertion Failed
   [----]   eq(ptr, (void *) 1, (void *) 0): 
-  [----]     diff: [-@1-]{+nullptr+}
+  [----]     diff: [-0x1-]{+0+}
   [----] failmessages.cc:98: Assertion Failed
   [----]   eq(str, "", "foo"): 
   [----]     diff: [-""-]{+"foo"+}
@@ -1030,7 +1030,7 @@
   [----]     value: 0
   [----] failmessages.cc:65: Assertion Failed
   [----]   zero(ptr, 0): 
-  [----]     value: nullptr
+  [----]     value: 0
   [----] failmessages.cc:66: Assertion Failed
   [----]   zero(str, ""): 
   [----]     value: ""
................
# Ran 17 tests, 0 skipped, 1 failed.
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――


Summary of Failures:

49/49 criterion / cram tests                    FAIL             5.99s   exit status 1

Ok:                 48  
Expected Fail:      0   
Fail:               1   
Unexpected Pass:    0   
Skipped:            0   
Timeout:            0   

Full log written to /tmp/cirrus-ci-build/build/meson-logs/testlog.txt
FAILED: meson-internal__test 
/usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������