[compiler-rt] r350095 - Adjust NetBSD/md[45].cc to be portable to more environments

Kamil Rytarowski via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 27 09:02:17 PST 2018


Author: kamil
Date: Thu Dec 27 09:02:16 2018
New Revision: 350095

URL: http://llvm.org/viewvc/llvm-project?rev=350095&view=rev
Log:
Adjust NetBSD/md[45].cc to be portable to more environments

Summary:
By an accident part of the tests contained hardcoded checksums
for external files that will differ between setups.

Reviewers: mgorny

Subscribers: kubamracek, llvm-commits, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D56106

Modified:
    compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md4.cc
    compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md5.cc

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md4.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md4.cc?rev=350095&r1=350094&r2=350095&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md4.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md4.cc Thu Dec 27 09:02:16 2018
@@ -105,10 +105,10 @@ int main(void) {
   // CHECK: test1: 'bf78fda2ca35eb7a026bfcdd3d17283d'
   // CHECK: test2: 'bf78fda2ca35eb7a026bfcdd3d17283d'
   // CHECK: test3: 'bf78fda2ca35eb7a026bfcdd3d17283d'
-  // CHECK: test4: '85b3d78ce68be51f710272728fe606af'
-  // CHECK: test5: '85b3d78ce68be51f710272728fe606af'
-  // CHECK: test6: '{{.*}}'
-  // CHECK: test7: '{{.*}}'
+  // CHECK: test4: '{{.*}}'
+  // CHECK: test5: '{{.*}}'
+  // CHECK: test6: 'bf78fda2ca35eb7a026bfcdd3d17283d'
+  // CHECK: test7: 'bf78fda2ca35eb7a026bfcdd3d17283d'
 
   return 0;
 }

Modified: compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md5.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md5.cc?rev=350095&r1=350094&r2=350095&view=diff
==============================================================================
--- compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md5.cc (original)
+++ compiler-rt/trunk/test/sanitizer_common/TestCases/NetBSD/md5.cc Thu Dec 27 09:02:16 2018
@@ -105,8 +105,8 @@ int main(void) {
   // CHECK: test1: '86e65b1ef4a830af347ac05ab4f0e999'
   // CHECK: test2: '86e65b1ef4a830af347ac05ab4f0e999'
   // CHECK: test3: '86e65b1ef4a830af347ac05ab4f0e999'
-  // CHECK: test4: 'd6798ca88175b5feece4dda691a5b9b5'
-  // CHECK: test5: 'd6798ca88175b5feece4dda691a5b9b5'
+  // CHECK: test4: '{{.*}}'
+  // CHECK: test5: '{{.*}}'
   // CHECK: test6: '86e65b1ef4a830af347ac05ab4f0e999'
   // CHECK: test7: '86e65b1ef4a830af347ac05ab4f0e999'
 




More information about the llvm-commits mailing list