1# UNSUPPORTED: system-freebsd
2
3# This tests that image list works when replaying. We arbitrarily assume
4# there's at least two entries and compare that they're identical.
5
6# RUN: %clang_host %S/Inputs/stepping.c -g -o %t.out
7
8# RUN: rm -rf %t.txt
9
10# RUN: echo "CAPTURE" >> %t.txt
11# RUN: %lldb -x -b  --capture --capture-path %t.repro \
12# RUN:    -o 'run' \
13# RUN:    -o 'image list' \
14# RUN:    -o 'reproducer generate' \
15# RUN:    %t.out >> %t.txt 2>&1
16
17# RUN: echo "REPLAY" >> %t.txt
18# RUN: %lldb -x -b --replay %t.repro >> %t.txt 2>&1
19
20# RUN: cat %t.txt | FileCheck %s
21
22# CHECK: CAPTURE
23# CHECK: image list
24# CHECK: [  0] [[ZERO:.*]]
25# CHECK: [  1] [[ONE:.*]]
26
27# CHECK: REPLAY
28# CHECK: image list
29# CHECK: [  0] {{.*}}[[ZERO]]
30# CHECK: [  1] {{.*}}[[ONE]]
31