test/codeonly.sh

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

mercurial