Skip Menu |

This queue is for tickets about the Preprocess-Ops CPAN distribution.

Report information
The Basics
Id: 133533
Status: resolved
Priority: 0/
Queue: Preprocess-Ops

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Test suite fails if TMPDIR is set (202010141)
It seems that the test suite fails if TMPDIR is set to something different than /tmp: ... Output from './Build test': # Failed test at (eval 56) line 71. # got: '#line 1 "/var/tmp/cpansmoker-1023/2020101415/Nkm8T6aJio/source/node.c" # #include <stdio.h> # # typedef struct Node // Node # {const struct ProtoTypes_Node *proto; # int data; # } Node; # # #include </var/tmp/cpansmoker-1023/2020101415/Nkm8T6aJio/derived/node.h> # # static Node by // New from node * number # (const Node * n, // Node # const int i) // Multiplier # {return newNode(({struct Node t = {data: i * n->data, proto: &ProtoTypes_Node}; t;})); # } # # static void dump // Dump a node to stdout # (const Node * n) // Node to dump # {printf("data=%d\n", n->data); # } # # int main(void) //TnewNode //Tdump //Tby # {const typeof(newNode(({struct Node t = {data: 6, proto: &ProtoTypes_Node}; t;}))) a = newNode(({struct Node t = {data: 6, proto: &ProtoTypes_Node}; t;})); # const typeof(a.proto->by(&a, 7)) b = a.proto->by(&a, 7); # b.proto->dump(&b); # return 0; # } # ' # expected: '#line 1 "node.c" # #include <stdio.h> # # typedef struct Node // Node # {const struct ProtoTypes_Node *proto; # int data; # } Node; # # #include <node.h> # # static Node by // New from node * number # (const Node * n, // Node # const int i) // Multiplier # {return newNode(({struct Node t = {data: i * n->data, proto: &ProtoTypes_Node}; t;})); # } # # static void dump // Dump a node to stdout # (const Node * n) // Node to dump # {printf("data=%d\n", n->data); # } # # int main(void) //TnewNode //Tdump //Tby # {const typeof(newNode(({struct Node t = {data: 6, proto: &ProtoTypes_Node}; t;}))) a = newNode(({struct Node t = {data: 6, proto: &ProtoTypes_Node}; t;})); # const typeof(a.proto->by(&a, 7)) b = a.proto->by(&a, 7); # b.proto->dump(&b); # return 0; # } # ' # Failed test at (eval 56) line 147. # got: '#line 1 "/var/tmp/cpansmoker-1023/2020101415/RT_KvlJ8qK/source.c" # #include <assert.h> # #include <stdio.h> # int main(void) # {char *a = # "a\n" # " b\n" # ; # assert( a[0] == 'a'); # printf("%s", a); # } # ' # expected: '#line 1 "source.c" # #include <assert.h> # #include <stdio.h> # int main(void) # {char *a = # "a\n" # " b\n" # ; # assert( a[0] == 'a'); # printf("%s", a); # } # ' # Looks like you failed 2 tests of 5. test.pl .. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/5 subtests ...
Believed fixed in: v202010142 - using a local directory rather than navigating /tmp/