test/codeonly_chars.sh

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

mercurial