systemc: Make some tests use cout instead of cerr to report completion.
cerr goes to simerr, but we compare simout against the golden output. Change-Id: I9270866a92dd06a23d47c1964dacc4872030f30d Reviewed-on: https://gem5-review.googlesource.com/c/12470 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
@@ -21,6 +21,6 @@ int sc_main(int argc, char* argv[])
|
||||
cout << "e = " << e << endl;
|
||||
cout << "f = " << f << endl;
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -123,6 +123,6 @@ int sc_main(int, char**)
|
||||
TEST("0bus1111111011011100101110101001100001110110010101000011001000010000",
|
||||
0xfedcba9876543210ll);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ int sc_main(int argc, char* argv[])
|
||||
TEST(sc_uint<8>)
|
||||
TEST(sc_lv<8>)
|
||||
TEST(sc_bv<8>)
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -193,6 +193,6 @@ int sc_main( int argc, char* argv[] )
|
||||
x.clk(clock);
|
||||
sc_start(1000, SC_NS);
|
||||
|
||||
cerr << "Program completed\n";
|
||||
cout << "Program completed\n";
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -89,6 +89,6 @@ int sc_main( int argc, char* argv[] )
|
||||
COMPARE( 97, sig_sc_int_b )
|
||||
COMPARE( 72, sig_sc_uint_b )
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ int sc_main( int argc, char* argv[] )
|
||||
|
||||
sc_start(1000, SC_NS);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ int sc_main( int argc, char* argv[] )
|
||||
|
||||
sc_start(1000, SC_NS);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@ int sc_main( int argc, char* argv[] )
|
||||
|
||||
sc_start(1000, SC_NS);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ int sc_main( int argc, char* argv[] )
|
||||
|
||||
sc_start(1000, SC_NS);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ int sc_main( int argc, char* argv[] )
|
||||
|
||||
sc_start(1000, SC_NS);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ int sc_main(int argc, char* arg[])
|
||||
|
||||
|
||||
sc_start(10, SC_NS);
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ int sc_main(int argc, char* arg[])
|
||||
|
||||
|
||||
sc_start(10, SC_NS);
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ int sc_main(int argc, char* argv[])
|
||||
if ( !sc_end_of_simulation_invoked() )
|
||||
cout << __FILE__ << "(" << __LINE__ << "): bad end flag should be true" << endl;
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ int sc_main(int argc, char* argv[])
|
||||
if ( !sc_end_of_simulation_invoked() )
|
||||
cout << __FILE__ << "(" << __LINE__ << "): bad end flag should be true" << endl;
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ int sc_main(int argc, char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -36,7 +36,7 @@ int sc_main(int argc, char* argv[])
|
||||
sc_assert(strcmp(sc_argv()[2], "2") == 0);
|
||||
sc_assert(strcmp(sc_argv()[1], "1") == 0);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -99,6 +99,6 @@ int sc_main(int argc, char* argv[])
|
||||
sc_start(1, SC_NS);
|
||||
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@ int sc_main(int argc,char **argv)
|
||||
tb.m_clk(clock);
|
||||
sc_start(2, SC_NS);
|
||||
|
||||
cerr << "Program completed" << endl;
|
||||
cout << "Program completed" << endl;
|
||||
return (0);
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ int sc_main(int argc, char* argv[])
|
||||
sc_start();
|
||||
cout << sc_time_stamp() << ": Issuing sc_start(10, SC_NS)" << endl;
|
||||
sc_start(10, SC_NS);
|
||||
cerr << sc_time_stamp() << ": Program completed" << endl;
|
||||
cout << sc_time_stamp() << ": Program completed" << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user