Cygwin: testsuite: Fix TEST_RETURN for 64-bit
The result of a function call won't fit in an int if it's e.g. a pointer.
This commit is contained in:
parent
6ca056eec9
commit
19b3b814bc
|
@ -159,7 +159,7 @@ struct usc_errno_t {
|
||||||
**********************************************************************/
|
**********************************************************************/
|
||||||
#ifdef _USC_LIB_
|
#ifdef _USC_LIB_
|
||||||
|
|
||||||
extern int TEST_RETURN;
|
extern long TEST_RETURN;
|
||||||
extern int TEST_ERRNO;
|
extern int TEST_ERRNO;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -173,7 +173,7 @@ extern struct usc_errno_t TEST_VALID_ENO[USC_MAX_ERRNO];
|
||||||
* Globals for returning the return code and errno from the system call
|
* Globals for returning the return code and errno from the system call
|
||||||
* test macros.
|
* test macros.
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
extern int TEST_RETURN;
|
extern long TEST_RETURN;
|
||||||
extern int TEST_ERRNO;
|
extern int TEST_ERRNO;
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
@ -210,7 +210,7 @@ extern void STD_opts_help();
|
||||||
* SCALL = system call and parameters to execute
|
* SCALL = system call and parameters to execute
|
||||||
*
|
*
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
#define TEST(SCALL) TEST_RETURN = (unsigned) SCALL; TEST_ERRNO=errno;
|
#define TEST(SCALL) TEST_RETURN = SCALL; TEST_ERRNO=errno;
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* TEST_VOID: calls a system call
|
* TEST_VOID: calls a system call
|
||||||
|
|
|
@ -110,7 +110,7 @@ struct usc_errno_t TEST_VALID_ENO[USC_MAX_ERRNO];
|
||||||
* Globals for returning the return code and errno from the system call
|
* Globals for returning the return code and errno from the system call
|
||||||
* test macros.
|
* test macros.
|
||||||
***********************************************************************/
|
***********************************************************************/
|
||||||
int TEST_RETURN;
|
long TEST_RETURN;
|
||||||
int TEST_ERRNO;
|
int TEST_ERRNO;
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue