Adjust NetBSD/md[45].cc to be portable to more environments
authorKamil Rytarowski <n54@gmx.com>
Thu, 27 Dec 2018 17:02:16 +0000 (17:02 +0000)
committerKamil Rytarowski <n54@gmx.com>
Thu, 27 Dec 2018 17:02:16 +0000 (17:02 +0000)
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

llvm-svn: 350095

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

index 8318326..a319e89 100644 (file)
@@ -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;
 }
index e279979..aee2168 100644 (file)
@@ -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'