[pkg-d-commits] [ldc] 54/211: Rename codeview tests to *_cdb.d (#1789)

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 9dbd5837073a478a7a38a30ebb1e6401731fbfe3
Author: Rainer Schuetze <r.sagitario at gmx.de>
Date:   Thu Oct 6 09:45:11 2016 +0200

    Rename codeview tests to *_cdb.d (#1789)
---
 tests/debuginfo/{cvbaseclass.d => baseclass_cdb.d}   | 7 ++++---
 tests/debuginfo/{cvbasictypes.d => basictypes_cdb.d} | 9 +++++----
 tests/debuginfo/{codeview.d => strings_cdb.d}        | 7 ++++---
 tests/debuginfo/{cvvector.d => vector_cdb.d}         | 7 ++++---
 4 files changed, 17 insertions(+), 13 deletions(-)

diff --git a/tests/debuginfo/cvbaseclass.d b/tests/debuginfo/baseclass_cdb.d
similarity index 87%
rename from tests/debuginfo/cvbaseclass.d
rename to tests/debuginfo/baseclass_cdb.d
index 790b6ad..080b31c 100644
--- a/tests/debuginfo/cvbaseclass.d
+++ b/tests/debuginfo/baseclass_cdb.d
@@ -1,10 +1,11 @@
-// REQUIRES: atleast_llvm308
+// REQUIRES: atleast_llvm309
 // REQUIRES: Windows
 // REQUIRES: cdb
 // RUN: %ldc -g -of=%t.exe %s
 // RUN: sed -e "/^\\/\\/ CDB:/!d" -e "s,// CDB:,," %s \
 // RUN:    | %cdb -snul -lines -y . %t.exe >%t.out
 // RUN: FileCheck %s -check-prefix=CHECK -check-prefix=%arch < %t.out
+module baseclass_cdb;
 
 class BaseClass
 {
@@ -19,10 +20,10 @@ class DerivedClass : BaseClass
 int main(string[] args)
 {
     auto dc = new DerivedClass;
-// CDB: ld /f cvbaseclass*
+// CDB: ld /f baseclass_cdb*
 // enable case sensitive symbol lookup
 // CDB: .symopt-1
-// CDB: bp `cvbaseclass.d:27`
+// CDB: bp `baseclass_cdb.d:28`
 // CDB: g
     return 0;
 // CHECK: !D main
diff --git a/tests/debuginfo/cvbasictypes.d b/tests/debuginfo/basictypes_cdb.d
similarity index 87%
rename from tests/debuginfo/cvbasictypes.d
rename to tests/debuginfo/basictypes_cdb.d
index be1729e..6a096bf 100644
--- a/tests/debuginfo/cvbasictypes.d
+++ b/tests/debuginfo/basictypes_cdb.d
@@ -1,4 +1,4 @@
-// REQUIRES: atleast_llvm308
+// REQUIRES: atleast_llvm309
 // REQUIRES: Windows
 // REQUIRES: cdb
 // RUN: %ldc -g -of=%t.exe %s
@@ -6,6 +6,7 @@
 // RUN:    | %cdb -snul -lines -y . %t.exe >%t.out
 // RUN: FileCheck %s -check-prefix=CHECK -check-prefix=%arch < %t.out
 
+// modulename explicitly unspecified to check implicit function name when breaking
 void main()
 {
 	basic_types();
@@ -37,10 +38,10 @@ int basic_types()
 	creal cr = 19 + 20i;
 
     c = c;
-// CDB: ld cvbasictypes
-// CDB: bp `cvbasictypes.d:39`
+// CDB: ld basictypes_cdb*
+// CDB: bp `basictypes_cdb.d:39`
 // CDB: g
-// CHECK: !cvbasictypes.basic_types
+// CHECK: !basictypes_cdb.basic_types
 
 // enable case sensitive symbol lookup
 // CDB: .symopt-1
diff --git a/tests/debuginfo/codeview.d b/tests/debuginfo/strings_cdb.d
similarity index 93%
rename from tests/debuginfo/codeview.d
rename to tests/debuginfo/strings_cdb.d
index 77ab5e8..1c9c2a1 100644
--- a/tests/debuginfo/codeview.d
+++ b/tests/debuginfo/strings_cdb.d
@@ -1,10 +1,11 @@
-// REQUIRES: atleast_llvm308
+// REQUIRES: atleast_llvm309
 // REQUIRES: Windows
 // REQUIRES: cdb
 // RUN: %ldc -g -of=%t.exe %s
 // RUN: sed -e "/^\\/\\/ CDB:/!d" -e "s,// CDB:,," %s \
 // RUN:    | %cdb -snul -lines -y . %t.exe >%t.out
 // RUN: FileCheck %s -check-prefix=CHECK -check-prefix=%arch < %t.out
+module strings_cdb;
 
 int main(string[] args)
 {
@@ -13,10 +14,10 @@ int main(string[] args)
     wstring ws = "b";
     dstring ds = "c";
 
-// CDB: ld /f codeview*
+// CDB: ld /f strings_cdb*
 // enable case sensitive symbol lookup
 // CDB: .symopt-1
-// CDB: bp `codeview.d:21`
+// CDB: bp `strings_cdb.d:22`
 // CDB: g
     return 0;
 // CHECK: !D main
diff --git a/tests/debuginfo/cvvector.d b/tests/debuginfo/vector_cdb.d
similarity index 94%
rename from tests/debuginfo/cvvector.d
rename to tests/debuginfo/vector_cdb.d
index 4e4d1cf..24e56ed 100644
--- a/tests/debuginfo/cvvector.d
+++ b/tests/debuginfo/vector_cdb.d
@@ -1,17 +1,18 @@
-// REQUIRES: atleast_llvm308
+// REQUIRES: atleast_llvm309
 // REQUIRES: Windows
 // REQUIRES: cdb
 // RUN: %ldc -g -of=%t.exe %s
 // RUN: sed -e "/^\\/\\/ CDB:/!d" -e "s,// CDB:,," %s \
 // RUN:    | %cdb -snul -lines -y . %t.exe >%t.out
 // RUN: FileCheck %s -check-prefix=CHECK -check-prefix=%arch < %t.out
+module vector;
 
 import core.simd;
 
-// CDB: ld /f cvvector*
+// CDB: ld /f vector_cdb*
 // enable case sensitive symbol lookup
 // CDB: .symopt-1
-// CDB: bp `cvvector.d:90`
+// CDB: bp `vector_cdb.d:91`
 // CDB: g
 // CDB: dv /t
 

-- 
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