Skip to content

Commit

Permalink
vcdiff gives error output on stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
RCoeurjoly committed May 28, 2024
1 parent 03ae4c5 commit 49a3944
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/single_bit/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ run_test() {
${CXX:-g++} -g -fprofile-arcs -ftest-coverage vcd_harness.cpp -I ${BASE_PATH}backends/functional/cxx_runtime/ -I ${BASE_PATH}backends/cxxrtl/runtime/ -o vcd_harness

# Generate VCD files with base_name
if ./vcd_harness ${base_name}_functional_cxx.vcd ${base_name}_cxxrtl.vcd ; then
if ./vcd_harness ${base_name}_functional_cxx.vcd ${base_name}_cxxrtl.vcd; then
# Run vcdiff and capture the output
local output=$(vcdiff ${base_name}_functional_cxx.vcd ${base_name}_cxxrtl.vcd)
local output=$(vcdiff ${base_name}_functional_cxx.vcd ${base_name}_cxxrtl.vcd 2>&1)

# Check if there is any output
if [ -n "$output" ]; then
Expand Down

0 comments on commit 49a3944

Please sign in to comment.