[compiler-rt] e54b228 - [Sanitizers] Change protoent test to check for IPv6 instead of RDP
Gui Andrade via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 10 16:50:55 PDT 2020
Author: Gui Andrade
Date: 2020-07-10T23:50:39Z
New Revision: e54b228408852e385d89b5202573bdd8d8da58cf
URL: https://github.com/llvm/llvm-project/commit/e54b228408852e385d89b5202573bdd8d8da58cf
DIFF: https://github.com/llvm/llvm-project/commit/e54b228408852e385d89b5202573bdd8d8da58cf.diff
LOG: [Sanitizers] Change protoent test to check for IPv6 instead of RDP
Looks like RDP isn't present on some of LLVM's buildbot machines
Added:
Modified:
compiler-rt/test/sanitizer_common/TestCases/Linux/protoent.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/sanitizer_common/TestCases/Linux/protoent.cpp b/compiler-rt/test/sanitizer_common/TestCases/Linux/protoent.cpp
index defc38ae2b1e..a1a93badf6b8 100644
--- a/compiler-rt/test/sanitizer_common/TestCases/Linux/protoent.cpp
+++ b/compiler-rt/test/sanitizer_common/TestCases/Linux/protoent.cpp
@@ -46,18 +46,24 @@ void print_protoent_by_num(int num) {
}
int main() {
+ // CHECK: All protoent
// CHECK: ip (0)
// CHECK-NEXT: alias IP
// CHECK: ipv6 (41)
// CHECK-NEXT: alias IPv6
+ fprintf(stderr, "All protoent\n");
print_all_protoent();
- // CHECK: rdp (27)
- // CHECK-NEXT: alias RDP
- print_protoent_by_name("rdp");
+ // CHECK: Protoent by name
+ // CHECK-NEXT: ipv6 (41)
+ // CHECK-NEXT: alias IPv6
+ fprintf(stderr, "Protoent by name\n");
+ print_protoent_by_name("ipv6");
- // CHECK: udp (17)
+ // CHECK: Protoent by num
+ // CHECK-NEXT: udp (17)
// CHECK-NEXT: alias UDP
+ fprintf(stderr, "Protoent by num\n");
print_protoent_by_num(17);
return 0;
}
More information about the llvm-commits
mailing list