[llvm-dev] Test failure due to file path

Csaba Raduly via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 29 09:53:12 PDT 2019


Hi all,

The following tests fail because my username (csabaraduly) contains "bar" :

********************
FAIL: LLVM :: tools/llvm-objcopy/ELF/regex.test (47099 of 50832)
******************** TEST 'LLVM :: tools/llvm-objcopy/ELF/regex.test'
FAILED ********************
Script:
--
: 'RUN: at line 1';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/yaml2obj
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test
> /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp
: 'RUN: at line 4';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy
--discard-all --regex -K 'ba'
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp2
: 'RUN: at line 5';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-readobj
--symbols /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp2
| /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test
--check-prefix=REGEX1
: 'RUN: at line 8';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy
--discard-all --regex -K 'ba.*'
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp3
: 'RUN: at line 9';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-readobj
--symbols /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp3
| /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test
--check-prefix=REGEX2
: 'RUN: at line 12';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy
--discard-all --regex -K '.*ba.*'
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp4
: 'RUN: at line 13';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-readobj
--symbols /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp4
| /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test
--check-prefix=REGEX3
: 'RUN: at line 16';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-objcopy
--discard-all --regex -K '^([a-z]+)*ba.*$'
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp5
: 'RUN: at line 17';   cmp
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp4
/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp5
--
Exit Code: 1

Command Output (stderr):
--
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-objcopy/ELF/regex.test:51:14:
error: REGEX1-NOT: excluded string found in input
#REGEX1-NOT: bar
             ^
<stdin>:2:16: note: found here
File: /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-objcopy/ELF/Output/regex.test.tmp2
               ^~~




********************
FAIL: LLVM :: tools/llvm-symbolizer/ignore-undefined-symbols.s (47626 of 50832)
******************** TEST 'LLVM ::
tools/llvm-symbolizer/ignore-undefined-symbols.s' FAILED
********************
Script:
--
: 'RUN: at line 2';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-mc
--filetype=obj --triple=x86_64-pc-linux
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-symbolizer/ignore-undefined-symbols.s
-o /home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-symbolizer/Output/ignore-undefined-symbols.s.tmp.o
-g
: 'RUN: at line 3';
/home/csabaraduly/wk/LLVM-git/__build_release_99/bin/llvm-symbolizer
--obj=/home/csabaraduly/wk/LLVM-git/__build_release_99/test/tools/llvm-symbolizer/Output/ignore-undefined-symbols.s.tmp.o
0 | /home/csabaraduly/wk/LLVM-git/__build_release_99/bin/FileCheck
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-symbolizer/ignore-undefined-symbols.s
--implicit-check-not=bar
--
Exit Code: 1

Command Output (stderr):
--
command line:1:22: error: CHECK-NOT: excluded string found in input
-implicit-check-not='bar'
                     ^
<stdin>:2:10: note: found here
/home/csabaraduly/wk/LLVM-git/llvm/test/tools/llvm-symbolizer/ignore-undefined-symbols.s:12:0
         ^~~

Maybe "bar" should be replaced with something less likely to appear
accidentally in a file path, e.g. rumpelstiltskin :)

Csaba
-- 
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)


More information about the llvm-dev mailing list