[compiler-rt] 240b421 - [MemProf] Augment test to debug avr bot failure
Teresa Johnson via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 29 10:05:05 PDT 2020
Author: Teresa Johnson
Date: 2020-10-29T10:04:43-07:00
New Revision: 240b4217382d488cc3e3db823dfa362c9ad3e729
URL: https://github.com/llvm/llvm-project/commit/240b4217382d488cc3e3db823dfa362c9ad3e729
DIFF: https://github.com/llvm/llvm-project/commit/240b4217382d488cc3e3db823dfa362c9ad3e729.diff
LOG: [MemProf] Augment test to debug avr bot failure
After 81f7b96ed0a2295e0b82ca185019370ac8e1895e, I can see that the
reason this test is failing on llvm-avr-linux is that it doesn't think
the directory exists (error comes during file open for write command).
Not sure why since this is the main test Output directory and we created
a different file there earlier in the test from the same file open
invocation. Print directory contents in an attempt to debug.
Added:
Modified:
compiler-rt/test/memprof/TestCases/log_path_test.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/memprof/TestCases/log_path_test.cpp b/compiler-rt/test/memprof/TestCases/log_path_test.cpp
index b3bc43267f80..88a8fac33950 100644
--- a/compiler-rt/test/memprof/TestCases/log_path_test.cpp
+++ b/compiler-rt/test/memprof/TestCases/log_path_test.cpp
@@ -20,7 +20,9 @@
// Specifying the log name via the __memprof_profile_filename variable.
// RUN: %clangxx_memprof %s -o %t -DPROFILE_NAME_VAR="%t.log2"
+// RUN: ls -l %T | FileCheck %s --dump-input=always
// RUN: rm -f %t.log2.*
+// RUN: ls -l %T | FileCheck %s --dump-input=always
// RUN: %run %t
// RUN: FileCheck %s --check-prefix=CHECK-GOOD --dump-input=always < %t.log2.*
@@ -41,3 +43,4 @@ int main(int argc, char **argv) {
// CHECK-GOOD: Memory allocation stack id
// CHECK-INVALID: ERROR: Can't open file: /dev/null/INVALID
// CHECK-LONG: ERROR: Path is too long: 01234
+// CHECK: log_path_test
More information about the llvm-commits
mailing list