File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -75,8 +75,11 @@ static auto OnViolationAction(DiagnosticsInfo info) {
75
75
handle.inc_use_count_unsafe ();
76
76
}
77
77
78
- if (flags ().halt_on_error )
78
+ if (flags ().halt_on_error ) {
79
+ if (flags ().print_stats_on_exit )
80
+ PrintStatisticsSummary ();
79
81
Die ();
82
+ }
80
83
};
81
84
}
82
85
Original file line number Diff line number Diff line change 1
1
// RUN: %clangxx -fsanitize=realtime %s -o %t
2
- // RUN: env RTSAN_OPTIONS="halt_on_error=false,print_stats_on_exit=true" %run %t 2>&1 | FileCheck %s
2
+ // RUN: %env_rtsan_opts="halt_on_error=false,print_stats_on_exit=true" %run %t 2>&1 | FileCheck %s
3
+ // RUN: %env_rtsan_opts="halt_on_error=true,print_stats_on_exit=true" not %run %t 2>&1 | FileCheck %s --check-prefix=CHECK-HALT
3
4
4
5
// UNSUPPORTED: ios
5
6
@@ -22,3 +23,7 @@ int main() {
22
23
// CHECK: RealtimeSanitizer exit stats:
23
24
// CHECK-NEXT: Total error count: 10
24
25
// CHECK-NEXT: Unique error count: 1
26
+
27
+ // CHECK-HALT: RealtimeSanitizer exit stats:
28
+ // CHECK-HALT-NEXT: Total error count: 1
29
+ // CHECK-HALT-NEXT: Unique error count: 1
You can’t perform that action at this time.
0 commit comments