You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
83% tests passed, 2 tests failed out of 12
Total Test time (real) = 616.56 sec
The following tests FAILED:
1 - offline (Failed)
12 - util (Failed)
Errors while running CTest
Output from these tests are in: /home/dvklo/clone/libgit2/libgit2/build/Testing/Temporary/LastTest.log
Use "--rerun-failed --output-on-failure" to re-run the failed cases verbosely.
Version of libgit2 (release number or SHA1)
Code from git clone https://github.com/libgit2/libgit2.git executed on 2023_1209
I'm not a Cygwin user, but I'm hopeful that it's something simple where WIN32 is accidentally or intentionally unset on windows based Cygwin platforms, and we need to fix our compile time platform detection.
Some of the errors are the same as #6655 but there seems to be some differences.
One problem could be that we pass signed characters into the character classification macros.
/* These macros are intentionally written in a manner that will trigger
a gcc -Wall warning if the user mistakenly passes a 'char' instead
of an int containing an 'unsigned char'. Note that the sizeof will
always be 1, which is what we want for mapping EOF to __CTYPE_PTR[0];
the use of a raw index inside the sizeof triggers the gcc warning if
__c was of type char, and sizeof masks side effects of the extra __c.
Meanwhile, the real index to __CTYPE_PTR+1 must be cast to int,
since isalpha(0x100000001LL) must equal isalpha(1), rather than being
an out-of-bounds reference on a 64-bit machine. */
#define __ctype_lookup(__c) ((__CTYPE_PTR+sizeof(""[__c]))[(int)(__c)])
So gcc should warn about it, but other compilers might not.
ctest -V has two failing tests out of twelve on Cygwin
Thank you so much for creating libgit2. It looks like a fantastic project and I am looking forward to using it in my own code.
Reproduction steps
Expected behavior
100% tests passed
Actual behavior
Version of libgit2 (release number or SHA1)
Code from
git clone https://github.com/libgit2/libgit2.git
executed on 2023_1209Operating system(s) tested
Log file from
ctest -V
: libgit2.logLastTest.log
The text was updated successfully, but these errors were encountered: