Fix log output ordering for vpi_control test when running in Windows.
MSYS2 buffers stderr, so we need to flush the buffers to ensure the log file matches the gold file.
This commit is contained in:
parent
a883f2afe6
commit
60e4023e6f
|
|
@ -1,3 +1,4 @@
|
||||||
|
#include <stdio.h>
|
||||||
#include <vpi_user.h>
|
#include <vpi_user.h>
|
||||||
|
|
||||||
static PLI_INT32 test_control(PLI_BYTE8 *xx)
|
static PLI_INT32 test_control(PLI_BYTE8 *xx)
|
||||||
|
|
@ -8,10 +9,12 @@ static PLI_INT32 test_control(PLI_BYTE8 *xx)
|
||||||
(void)xx; /* Parameter is not used. */
|
(void)xx; /* Parameter is not used. */
|
||||||
|
|
||||||
ret_val = vpi_control(9999);
|
ret_val = vpi_control(9999);
|
||||||
|
fflush(stderr);
|
||||||
//vpi_printf("vpi_control(9999) returned %i\n", ret_val);
|
//vpi_printf("vpi_control(9999) returned %i\n", ret_val);
|
||||||
if (ret_val != 0) failed = 1;
|
if (ret_val != 0) failed = 1;
|
||||||
|
|
||||||
ret_val = vpi_sim_control(9999);
|
ret_val = vpi_sim_control(9999);
|
||||||
|
fflush(stderr);
|
||||||
//vpi_printf("vpi_sim_control(9999) returned %i\n", ret_val);
|
//vpi_printf("vpi_sim_control(9999) returned %i\n", ret_val);
|
||||||
if (ret_val != 0) failed = 1;
|
if (ret_val != 0) failed = 1;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue