salortiz / NativeHelpers-Blob

Other
7 stars 3 forks source link

Test 01-basic fails with latest nom #2

Closed japhb closed 4 years ago

japhb commented 7 years ago

Attempting to install with zef on latest nom build:

===> Testing: NativeHelpers::Blob:ver('0.1.10'):auth('github:salortiz')
t/00-trivial.t .. ok 
t/01-basic.t .... No subtests run
t/02-cstruct.c: In function ‘shown’:
t/02-cstruct.c:27:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t’ [-Wformat=]
     sprintf(buff, "x:%lld, y:%lld, z:%lld", arr[idx].x, arr[idx].y, arr[idx].z);
     ^
t/02-cstruct.c:27:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ [-Wformat=]
t/02-cstruct.c:27:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t’ [-Wformat=]
t/02-cstruct.t .. ok  
t/03-pointer.t .. ok  
t/99-my-meta.t .. ok 
All tests successful.

Test Summary Report
-------------------
t/01-basic.t  (Wstat: 0 Tests: 0 Failed: 0)
  Parse errors: No plan found in TAP output
Files=5, Tests=47,  8 wallclock secs
Result: FAILED
===> Testing [FAIL]: NativeHelpers::Blob:ver('0.1.10'):auth('github:salortiz')

Trying an install on 'Rakudo version 2016.12-107-ga7bf1ea built on MoarVM version 2016.12-6-g65acd55':

===> Testing: NativeHelpers::Blob:ver('0.1.10'):auth('github:salortiz')
t/00-trivial.t .. ok 
t/01-basic.t .... ok  
t/02-cstruct.c: In function ‘shown’:
t/02-cstruct.c:27:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int64_t’ [-Wformat=]
     sprintf(buff, "x:%lld, y:%lld, z:%lld", arr[idx].x, arr[idx].y, arr[idx].z);
     ^
t/02-cstruct.c:27:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘int64_t’ [-Wformat=]
t/02-cstruct.c:27:5: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 5 has type ‘int64_t’ [-Wformat=]
t/02-cstruct.t .. ok  
t/03-pointer.t .. ok  
t/99-my-meta.t .. ok 
All tests successful.
Files=5, Tests=71,  3 wallclock secs
Result: PASS
===> Testing [OK] for NativeHelpers::Blob:ver('0.1.10'):auth('github:salortiz')
===> Installing: NativeHelpers::Blob:ver('0.1.10'):auth('github:salortiz')

Note the difference in t/01-basic.t.

japhb commented 7 years ago

Weirdly, trying from scratch with the latest again (a few Rakudo revisions later), and now everything works fine again. Perhaps I just got unlucky with a bad Rakudo commit.

salortiz commented 5 years ago

@japhb,

Can you give a try to latest version and close the issue if succeeds?