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:
Gabe Black
2018-09-04 18:13:23 -07:00
parent fd0da6800a
commit c7c0475549
19 changed files with 19 additions and 19 deletions

View File

@@ -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;
}

View File

@@ -123,6 +123,6 @@ int sc_main(int, char**)
TEST("0bus1111111011011100101110101001100001110110010101000011001000010000",
0xfedcba9876543210ll);
cerr << "Program completed" << endl;
cout << "Program completed" << endl;
return 0;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -23,7 +23,7 @@ int sc_main(int argc, char* argv[])
}
}
cerr << "Program completed" << endl;
cout << "Program completed" << endl;
return 0;
}

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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);
}

View File

@@ -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;
}