From 88655ee049b9a9d9a2b1ef663c3d44cde4da643b Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 8 Dec 2022 12:23:50 +0100 Subject: [PATCH] Replaced 'stat' by 'wc -c' to make it work on MacOS too --- tests/tc_empty_module/run.sh | 2 +- tests/tc_import_symbol_list/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/tc_empty_module/run.sh b/tests/tc_empty_module/run.sh index fca39fb..8a7f210 100755 --- a/tests/tc_empty_module/run.sh +++ b/tests/tc_empty_module/run.sh @@ -1,5 +1,5 @@ set -e set -u -../../bin/dcd-client $1 file.d --extended -c$(stat -c %s file.d) > actual.txt +../../bin/dcd-client $1 file.d --extended -c$(wc -c < file.d) > actual.txt diff actual.txt expected.txt --strip-trailing-cr diff --git a/tests/tc_import_symbol_list/run.sh b/tests/tc_import_symbol_list/run.sh index bdb6a26..7152821 100755 --- a/tests/tc_import_symbol_list/run.sh +++ b/tests/tc_import_symbol_list/run.sh @@ -1,6 +1,6 @@ set -e set -u -../../bin/dcd-client $1 file.d --extended -I"$PWD"/newpackage -c$(stat -c %s file.d) > actual1.txt +../../bin/dcd-client $1 file.d --extended -I"$PWD"/newpackage -c$(wc -c < file.d) > actual1.txt echo -e "identifiers\nSomeStruct\ts\t\t$PWD/newpackage/newmodule.d 26\t" > expected1.txt diff actual1.txt expected1.txt --strip-trailing-cr