Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

../tests/example-test.cpp:89: Failure Expected: (f) != ((void*)0), actual: NULL vs NULL #59

Closed
XVilka opened this issue Apr 23, 2023 · 1 comment

Comments

@XVilka
Copy link
Collaborator

XVilka commented Apr 23, 2023

[ RUN      ] Examples.RoundTripPerson
../tests/example-test.cpp:89: Failure
Expected: (f) != ((void*)0), actual: NULL vs NULL
[  FAILED  ] Examples.RoundTripPerson (0 ms)
[ RUN      ] Examples.PersonWithAccessors
[       OK ] Examples.PersonWithAccessors (0 ms)
[----------] 2 tests from Examples (0 ms total)

[----------] 1 test from Schema
[ RUN      ] Schema.ReadSimple
[       OK ] Schema.ReadSimple (0 ms)
[----------] 1 test from Schema (0 ms total)

[----------] Global test environment tear-down
[==========] 24 tests from 4 test suites ran. (0 ms total)
[  PASSED  ] 23 tests.
[  FAILED  ] 1 test, listed below:
[  FAILED  ] Examples.RoundTripPerson

 1 FAILED TEST
――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――


Summary of Failures:

1/1 capn-test FAIL            0.40s   exit status 1

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

It's Clang on macOS ARM64 (M1):

ℤ clang --version
Apple clang version 14.0.3 (clang-1403.0.22.14.1)
Target: arm64-apple-darwin22.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

ℤ sw_vers
ProductName:		macOS
ProductVersion:		13.3.1
BuildVersion:		22E261
@XVilka
Copy link
Collaborator Author

XVilka commented Apr 23, 2023

Nevermind, it happens because ninja -C build test uses different directory, if we run build/capn-test, it works just fine (because file loaded from the tests/ directory in the test itself)

@XVilka XVilka closed this as completed Apr 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant