Skip to content

Commit 3e9321b

Browse files
committed
Fix test flakiness
1 parent 142eeab commit 3e9321b

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

test/separate-debug-file-sort.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ EOF
1919
$CC -o $t/b.o -c -g -gdwarf64 $t/b.c
2020

2121
MOLD_DEBUG=1 $CC -B. -o $t/exe $t/a.o $t/b.o -g -Wl,--separate-debug-file
22-
flock $t/exe true
22+
flock $t/exe.dbg true
2323
readelf -p .debug_line_str $t/exe.dbg > $t/str
2424

2525
if grep -Fw a.c $t/str; then

test/separate-debug-file.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,22 @@ $CC -c -o $t/a.o $t/a.c -g
1717
$CC -B. -o $t/exe1 $t/a.o -Wl,--separate-debug-file
1818
readelf -SW $t/exe1 | grep -F .gnu_debuglink
1919

20-
flock $t/exe1 true
20+
flock $t/exe1.dbg true
2121
gdb $t/exe1 -ex 'list main' -ex 'quit' | grep -F printf
2222

2323

2424
$CC -c -o $t/a.o $t/a.c -g
2525
$CC -B. -o $t/exe2 $t/a.o -Wl,--separate-debug-file,--no-build-id
2626
readelf -SW $t/exe2 | grep -F .gnu_debuglink
2727

28-
flock $t/exe2 true
28+
flock $t/exe2.dbg true
2929
gdb $t/exe2 -ex 'list main' -ex 'quit' | grep -F printf
3030

3131

3232
$CC -c -o $t/a.o $t/a.c -g
3333
$CC -B. -o $t/exe3 $t/a.o -Wl,--separate-debug-file,--compress-debug-sections=zlib
3434
readelf -SW $t/exe3 | grep -F .gnu_debuglink
3535

36-
flock $t/exe3 true
36+
flock $t/exe3.dbg true
3737
readelf -W --sections $t/exe3.dbg | grep '\.debug_info .*C'
3838
gdb $t/exe3 -ex 'list main' -ex 'quit' | grep -F printf

0 commit comments

Comments
 (0)