test/total_chars.sh

changeset 68
ae763178ee1e
parent 66
be2084398c37
--- a/test/total_chars.sh	Fri Jun 03 20:06:08 2022 +0200
+++ b/test/total_chars.sh	Fri Sep 22 23:26:23 2023 +0200
@@ -29,16 +29,13 @@
 
 echo -n "Verifying correctness of total character count: "
 
-clineprg="$(pwd)/../src/cline"
-
-cd $srcdir
-count=`$clineprg -Vcs testfile.c`
+count=`../build/cline -Vcs testfile.c`
 expected=334
 
 if [ "$count" -eq "$expected" ]; then
     echo "OK."
-    exit 0;
+    exit 0
 else
     echo "FAIL! $count is not $expected"
-    exit 1;
+    exit 1
 fi

mercurial