diff --git a/tests/line-directives.scm b/tests/line-directives.scm index 877b56bc..c0675430 100644 --- a/tests/line-directives.scm +++ b/tests/line-directives.scm @@ -231,9 +231,10 @@ after that is one more. Lines before the first directive get #f." ;; an `if' arm is a statement only where the `if' is one: a ;; directive between `?' and `:' does not compile (maps "conditional argument" "123") + ;; a bare 123 may be a digit run of the fixture's path, in every #line (test-assert "holds no directive" - (let ((start (string-contains c-out "123"))) - (not (string-contains (substring c-out start (string-contains c-out "125" start)) + (let ((start (string-contains c-out "mvar < 123"))) + (not (string-contains (substring c-out start (string-contains c-out ": 125" start)) "#line"))))) ;; A location is (file . line); every directive must name the file the