[pkg-d-commits] [ldc] 58/211: ir2obj cache: Add testcase for ignoring parameters after `-run` for hashing.

Matthias Klumpp mak at moszumanska.debian.org
Sun Apr 23 22:36:09 UTC 2017


This is an automated email from the git hooks/post-receive script.

mak pushed a commit to annotated tag v1.1.0
in repository ldc.

commit 2f3228effa6ff67bd013d3c5b240a309fa3127a1
Author: Johan Engelen <jbc.engelen at gmail.com>
Date:   Sun Sep 25 15:01:03 2016 +0200

    ir2obj cache: Add testcase for ignoring parameters after `-run` for hashing.
---
 tests/linking/ir2obj_caching_flags1.d | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/linking/ir2obj_caching_flags1.d b/tests/linking/ir2obj_caching_flags1.d
index 1baceb0..2bf1f1d 100644
--- a/tests/linking/ir2obj_caching_flags1.d
+++ b/tests/linking/ir2obj_caching_flags1.d
@@ -28,10 +28,15 @@
 // RUN:   && %ldc %s -c -of=%t%obj -ir2obj-cache=%T/flag1cache -D -H -I. -J.                    -vv | FileCheck --check-prefix=MUST_HIT %s \
 // RUN:   && %ldc %s -c -of=%t%obj -ir2obj-cache=%T/flag1cache -d-version=Irrelevant            -vv | FileCheck --check-prefix=MUST_HIT %s \
 // RUN:   && %ldc %s -c -of=%t%obj -ir2obj-cache=%T/flag1cache -unittest                        -vv | FileCheck --check-prefix=MUST_HIT %s \
+// RUN:   && %ldc                  -ir2obj-cache=%T/flag1cache -vv -run %s                          | FileCheck --check-prefix=COULD_HIT %s \
+// RUN:   && %ldc                  -ir2obj-cache=%T/flag1cache -vv -run %s a b                      | FileCheck --check-prefix=MUST_HIT %s \
 // RUN:   && %ldc %s -c -of=%t%obj -ir2obj-cache=%T/flag1cache                                  -vv | FileCheck --check-prefix=MUST_HIT %s
 // The last test is a MUST_HIT test, to make sure that the cache wasn't pruned somehow, which could effectively disable some NO_HIT tests.
 
 // MUST_HIT: Cache object found!
-// NO_HIT-NOT: Cache object found!
+// NO_HIT: Cache object not found.
 
-void foo() {}
+// Could hit is used for cases where we could have a cache hit, but currently we don't: a "TODO" item.
+// COULD_HIT: Cache object
+
+void main() {}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-d/ldc.git



More information about the pkg-d-commits mailing list